Hi, On 01/06/2012 10:57 AM, Argha Chattopadhyay wrote: > Hi, > > Does anyone have an idea to pick up custom facts from the ENV hash of a > non-root user. I'm asking as I believe the plugin modules for facter > pick up the ENV variables of the root user by default.
there seems to be a misconception: The environment is process-specific, not user specific. You will typically alter your user account's login shell configuration to ensure that shell has a certain environment, but that's all it is - customization of one chosen process. Don't try and alter puppet's behaviour by altering you bashrc or similar, you *will* shoot yourself in the foot. Depending on what you need to achieve, there might be several ways to go about the problem. A simple way might be to write a simple shell wrapper around puppet that exports all your desired environment variables etc. HTH, Felix -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
