On Fri, Jan 6, 2012 at 1:57 AM, Argha Chattopadhyay <[email protected]> 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.
Facter will pickup ENV variables for whatever user is running Puppet. In nearly all cases, that is root on an agent. So, that's not extremely simple. If you have a look at Puppet Labs stdlib[1], you could drop facts into a facts.d directory with it, and possibly achieve the same thing as environment variables from other users. You could optionally write custom facts with those values, or somehow pass them into root's environment. In any case, I don't see a straightforward way to do exactly what you asked. [1] http://forge.puppetlabs.com/puppetlabs/stdlib > > Cheers > > -- > Argha Chattopadhyay > > -- > 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. -- 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.
