From ef5d42e33d0503193d2a22ca7ebecbbd6e5d0fc7 Mon Sep 17 00:00:00 2001 From: maniacmurphy Date: Wed, 24 Aug 2016 21:07:21 +0200 Subject: [PATCH] Added base module files --- Gemfile | 20 ++++++++++++++++++++ LICENSE | 13 +++++++++++++ Modulefile | 17 +++++++++++++++++ Rakefile | 2 ++ 4 files changed, 52 insertions(+) create mode 100644 Gemfile create mode 100644 LICENSE create mode 100644 Modulefile create mode 100644 Rakefile diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c134248 --- /dev/null +++ b/Gemfile @@ -0,0 +1,20 @@ +source 'https://rubygems.org' + +gem 'gyoku' +gem 'hashdiff' +gem 'nori' +gem 'rest-client' +gem 'rbvmomi' + +group :development, :test do + gem 'rake' + gem 'rspec', "~> 2.11.0", :require => false + gem 'mocha', "~> 0.10.5", :require => false + gem 'puppetlabs_spec_helper', :require => false + gem 'rspec-puppet', :require => false + gem 'puppet-lint' +end + +puppetversion = ENV.key?('PUPPET_VERSION') ? ENV['PUPPET_VERSION'] : ['>= 3.3'] +gem 'puppet', puppetversion +gem 'facter', '>= 1.7.0' diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..992d42a --- /dev/null +++ b/LICENSE @@ -0,0 +1,13 @@ +Copyright (C) 2014-2016 VMware, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/Modulefile b/Modulefile new file mode 100644 index 0000000..e06960c --- /dev/null +++ b/Modulefile @@ -0,0 +1,17 @@ +name 'vmware-nsx' +source 'git@github.com:vmware/vmware-nsx.git' +author 'VMware' +license 'Apache 2.0' +summary 'VMware NSX puppet module' +description 'VMware NSX resource management.' +project_page 'https://github.com/vmware/vmware-nsx' + +moduledir = File.dirname(__FILE__) +ENV['GIT_DIR'] = moduledir + '/.git' + +git_version = %x{git describe --dirty --tags}.chomp.split('-')[0] +unless $?.success? and git_version =~ /^\d+\.\d+\.\d+/ + raise "Unable to determine version using git: #{$?} => #{git_version.inspect}" +end +version git_version + diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..9a586f7 --- /dev/null +++ b/Rakefile @@ -0,0 +1,2 @@ +require 'puppetlabs_spec_helper/rake_tasks' +