ReleaseEngineering/PuppetAgain/Modules/shared: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 7: Line 7:
= Functions =
= Functions =
* base64decode($b64) -- decode a base64-encoded string.  This allows short bits of binary data to be handled in ascii text.
* base64decode($b64) -- decode a base64-encoded string.  This allows short bits of binary data to be handled in ascii text.
= Types =
* anchor -- (from [https://github.com/puppetlabs/puppetlabs-stdlib/blob/master/lib/puppet/type/anchor.rb puppetlabs stdlib]) see [[ReleaseEngineering/PuppetAgain/Anchoring Classes]]

Latest revision as of 15:01, 2 August 2012

This module is a gathering place for generally useful values, functions, facts and so on. It does *not* contain configuration -- the values here can be dynamic based on the host, but should not depend on the site.

Variables

  • $::shared::lib -- "lib" or "lib64" depending on bitlength (only appropriate on Linux)
  • $::shared::root_group -- the proper group for files owned by root -- wheel on Darwin, root pretty much everywhere else.

Functions

  • base64decode($b64) -- decode a base64-encoded string. This allows short bits of binary data to be handled in ascii text.

Types