ReleaseEngineering/PuppetAgain/Modules/shellprofile

From MozillaWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

This module adds snippets to the default shell profile on a host. This profile is sourced by most user shells when the start up, so this is a good way to add a PATH entry or set some other environment variable for all users. This should only be used to set up user environments, not for production code -- production code should have its environment configured explicitly, if needed.

Usage:

 shellprofile::file {
   "mystuff-path":
     content => "PATH=/opt/mystuff/bin:\$PATH";
 }