From 6e9d0465bc695b45c4f4ac76d74795b6edfc625d Mon Sep 17 00:00:00 2001 From: Jeff McCune Date: Tue, 24 May 2011 11:06:30 -0700 Subject: Initial commit --- .gitignore | 1 + Modulefile | 11 +++++++++++ README.markdown | 24 ++++++++++++++++++++++++ manifests/init.pp | 17 +++++++++++++++++ manifests/stages.pp | 0 metadata.json | 12 ++++++++++++ spec/spec.opts | 6 ++++++ spec/spec_helper.rb | 18 ++++++++++++++++++ tests/init.pp | 1 + 9 files changed, 90 insertions(+) create mode 100644 .gitignore create mode 100644 Modulefile create mode 100644 README.markdown create mode 100644 manifests/init.pp create mode 100644 manifests/stages.pp create mode 100644 metadata.json create mode 100644 spec/spec.opts create mode 100644 spec/spec_helper.rb create mode 100644 tests/init.pp 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 + +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 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 -- cgit v1.2.3