ReleaseEngineering/PuppetAgain/Modules/shellprofile

From MozillaWiki
Jump to: navigation, search

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";
 }