Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit b2b4026
Showing
6 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 { | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |