Displaying 1 result from an estimated 1 matches for "facter_soe_version".
2009 Mar 05
2
Exposing environment variables to Facter
...s, the kickstart
process writes out a file (/etc/sysconfig/soe) that contains:
SOE_VERSION="Version string"
SOE_BUILD_DATE="2009-03-06"
I then have /etc/profile.d/facter.sh scripts that has this:
. /etc/sysconfig/puppet
. /etc/sysconfig/soe
FACTER_PUPPETMASTER=$PUPPET_SERVER
FACTER_SOE_VERSION=$SOE_VERSION
FACTER_SOE_BUILD_DATE=$SOE_BUILD_DATE
If I login, obviously the profile is loaded, the envvars are created and
running puppetd manually means that Facter can see those envvars and my
motd template works (it inserts those values).
However, when Puppet runs as a service, it doesn'...