edovale
2011-Aug-03 02:19 UTC
[Puppet Users] Facts as environment variables not been picked up in ubuntu.
Folks, I am adding a line to /etc/profile to export a FACT like this: export FACTER_system_role=<system_role>. In ubuntu, running puppet 2.6.4 and facter 1.5.8, this fact is not making it to the server. If I run sudo env | grep FACTER i see all facter related env variables there.. What could be the reason for this not working? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
edovale
2011-Aug-03 15:24 UTC
[Puppet Users] Re: Facts as environment variables not been picked up in ubuntu.
I found a solution for this problem which I am not sure it is the most elegant but works fine. I am adding the export FACTER_* statement to /etc/default/puppet This way it is guarantee the variables will be available to puppet and facter. On Aug 2, 10:19 pm, edovale <edov...@gmail.com> wrote:> Folks, > I am adding a line to /etc/profile to export a FACT like this: export > FACTER_system_role=<system_role>. > In ubuntu, running puppet 2.6.4 and facter 1.5.8, this fact is not > making it to the server. > If I run sudo env | grep FACTER i see all facter related env variables > there.. > What could be the reason for this not working? > > Thanks in advance.-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.