Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
rnelson0 committed Apr 20, 2014
0 parents commit b2b4026
Show file tree
Hide file tree
Showing 6 changed files with 97 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Modulefile
@@ -0,0 +1,11 @@
name 'rnelson0-site_mcollective'
version '0.1.0'
source 'UNKNOWN'
author 'rnelson0'
license 'Apache License, Version 2.0'
summary 'UNKNOWN'
description 'UNKNOWN'
project_page 'UNKNOWN'

## Add dependencies, if any:
# dependency 'username/name', '>= 1.2.0'
16 changes: 16 additions & 0 deletions README
@@ -0,0 +1,16 @@
site_mcollective

This is the site_mcollective module.

License
-------


Contact
-------


Support
-------

Please log tickets and issues at our [Projects site](http://projects.example.com)
Empty file added README.md
Empty file.
41 changes: 41 additions & 0 deletions manifests/init.pp
@@ -0,0 +1,41 @@
# == Class: site_mcollective
#
# Full description of class site_mcollective here.
#
# === Parameters
#
# Document parameters here.
#
# [*sample_parameter*]
# Explanation of what this parameter affects and what it defaults to.
# e.g. "Specify one or more upstream ntp servers as an array."
#
# === Variables
#
# Here you should define a list of variables that this module would require.
#
# [*sample_variable*]
# Explanation of how this variable affects the funtion of this class and if
# it has a default. e.g. "The parameter enc_ntp_servers must be set by the
# External Node Classifier as a comma separated list of hostnames." (Note,
# global variables should be avoided in favor of class parameters as
# of Puppet 2.6.)
#
# === Examples
#
# class { site_mcollective:
# servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
# }
#
# === Authors
#
# Author Name <author@domain.com>
#
# === Copyright
#
# Copyright 2014 Your name here, unless otherwise noted.
#
class site_mcollective {


}
17 changes: 17 additions & 0 deletions spec/spec_helper.rb
@@ -0,0 +1,17 @@
dir = File.expand_path(File.dirname(__FILE__))
$LOAD_PATH.unshift File.join(dir, 'lib')

require 'mocha'
require 'puppet'
require 'rspec'
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
12 changes: 12 additions & 0 deletions tests/init.pp
@@ -0,0 +1,12 @@
# The baseline for module testing used by Puppet Labs is that each manifest
# should have a corresponding test manifest that declares that class or defined
# type.
#
# Tests are then run by using puppet apply --noop (to check for compilation
# errors and view a log of events) or by fully applying the test in a virtual
# environment (to compare the resulting system state to the desired state).
#
# Learn more about module testing here:
# http://docs.puppetlabs.com/guides/tests_smoke.html
#
include site_mcollective

0 comments on commit b2b4026

Please sign in to comment.