diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | Modulefile | 11 | ||||
-rw-r--r-- | README.markdown | 24 | ||||
-rw-r--r-- | manifests/init.pp | 17 | ||||
-rw-r--r-- | manifests/stages.pp | 0 | ||||
-rw-r--r-- | metadata.json | 12 | ||||
-rw-r--r-- | spec/spec.opts | 6 | ||||
-rw-r--r-- | spec/spec_helper.rb | 18 | ||||
-rw-r--r-- | tests/init.pp | 1 |
9 files changed, 90 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..01d0a08 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +pkg/ diff --git a/Modulefile b/Modulefile new file mode 100644 index 0000000..51704dd --- /dev/null +++ b/Modulefile @@ -0,0 +1,11 @@ +name 'puppetlabs-stdlib' +version '0.1.1' +source 'git://github.com/puppetlabs/puppetlabs-stdlib' +author 'puppetlabs' +license 'Apache' +summary 'Puppet Module Standard Library' +description 'Standard Library for Puppet Modules' +project_page 'https://github.com/puppetlabs/puppetlabs-stdlib' + +## Add dependencies, if any: +# dependency 'username/name', '>= 1.2.0' diff --git a/README.markdown b/README.markdown new file mode 100644 index 0000000..e3a1a29 --- /dev/null +++ b/README.markdown @@ -0,0 +1,24 @@ +# Puppet Labs Standard Library # + +This module provides a "standard library" of resources for developing Puppet +Modules. This modules will include the following additions to Puppet + + * Stages + * Functions + * Types + * Providers + * Defined resource types + +This module is officially curated and provided by Puppet Labs. The modules +Puppet Labs writes and distributes will make heavy use of this standard +library. + +# Overview # + +TBA + +# Contact Information # + + Jeff McCune <jeff@puppetlabs.com> + +EOF diff --git a/manifests/init.pp b/manifests/init.pp new file mode 100644 index 0000000..a3f2406 --- /dev/null +++ b/manifests/init.pp @@ -0,0 +1,17 @@ +# Class: stdlib +# +# This module manages stdlib +# +# Parameters: +# +# Actions: +# +# Requires: +# +# Sample Usage: +# +# [Remember: No empty lines between comments and class definition] +class stdlib { + + +} diff --git a/manifests/stages.pp b/manifests/stages.pp new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/manifests/stages.pp diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..8ce7797 --- /dev/null +++ b/metadata.json @@ -0,0 +1,12 @@ +/* ++-----------------------------------------------------------------------+ +| | +| ==> DO NOT EDIT THIS FILE! <== | +| | +| You should edit the `Modulefile` and run `puppet-module build` | +| to generate the `metadata.json` file for your releases. | +| | ++-----------------------------------------------------------------------+ +*/ + +{} diff --git a/spec/spec.opts b/spec/spec.opts new file mode 100644 index 0000000..91cd642 --- /dev/null +++ b/spec/spec.opts @@ -0,0 +1,6 @@ +--format +s +--colour +--loadby +mtime +--backtrace diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..a4aeeae --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,18 @@ +require 'pathname' +dir = Pathname.new(__FILE__).parent +$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib') + +require 'mocha' +require 'puppet' +gem 'rspec', '=1.2.9' +require 'spec/autorun' + +Spec::Runner.configure do |config| + config.mock_with :mocha +end + +# We need this because the RAL uses 'should' as a method. This +# allows us the same behaviour but with a different method name. +class Object + alias :must :should +end diff --git a/tests/init.pp b/tests/init.pp new file mode 100644 index 0000000..9675d83 --- /dev/null +++ b/tests/init.pp @@ -0,0 +1 @@ +include stdlib |