-
Notifications
You must be signed in to change notification settings - Fork 582
(#1) Adds a standard spool directory to stdlib #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This adds a standard place to store file fragments for use by other modules. Uses a fact so that vardir is accesible on the agent side. Also cleans up documentation to match the style guide.
# Turns puppet's agent side vardir configuration setting into a fact so we can use it | ||
# in our manifests. | ||
|
||
Facter.add(:vardir) do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather not merge this with a fact named $vardir. It could be confusing from a manifest if you're referring to the client vardir or the agent vardir.
Maybe rename this as $client_vardir ?
Closing this pull request for the time being. Cody, please open a new one or grab me if you'd like to talk about the facts and spool directory. |
Closes pull request #12 Reviewed-by: Jeff McCune Verified all spec tests pass using rspec **/*_spec.rb * issue/master/8797_puppetlabs-functions_merge: (164 commits) * Moved kwalify to puppetlabs-kwalify project * Re-arranged tests in line with puppetlabs-stdlib Prep for stdlib merge * Renamed load_yaml & load_json to parseyaml & parsejson * Renamed is_valid_* functions and remove the 'valid_' Fix some ruby 1.9.2 issues. (#3) Provide documentation for remaining functions. (#3) Apply missing documentation to more functions. Remove rand. Some improvements to values_at tests. (#1) provide some more detailed tests for a number of functions. Removed date stub since this functinality is available in strftime anyway. (#2) fix is_string finally so it also makes sure numbers return false. (#2) unstub is_valid_domain_name Added doc strings for first five functions Removed join_with_prefix. (#2) unstub is_valid_mac_address. Allow sort for strings. Count functionality overlaps with size - so removing it. Removed crontab functions instead of unstubbing them. Removed load_variables. load_yaml is sufficient to solve this problem on its own. Remove is_valid_netmask instead of unstubbing. Doesn't seem like a sensible function on its own. (#2) unstub is_numeric function. ...
This adds a standard place to store file fragments for use by other
modules. Also cleans up documentation to match the style guide.