On Thu, Jan 6, 2011 at 8:11 PM, Mohamed Lrhazi <[email protected]> wrote:
> Is it normal that "facter --puppet" does not show the environment
> variable? is there a way to have it include it?
facter --puppet shows the facter facts, plus any that have been
delivered by puppet and pluginsync.
"environment" isn't a fact by default. You could make a fact that
reported on the Puppet environment setting however.
require 'puppet'
Facter.add("environment) do
setcode do
Puppet[:environment]
end
end
[1] - UNTESTED in anything other than a quick interactive session.
>
> Thanks a lot,
> Mohamed.
>
> --
> 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.