Hello,

I'm trying to add an environment variable as fact like this :
#export $FACTER_test="infof"
#facter | grep test
test => infof

But my fact don't synchronize with puppet master. I don't see it in /
var/puppet/yaml/clientfile.yaml
If I want this works, I've need to start puppet like this :
#puppetd -vt --factsync

but factsync's setting only works with test's setting

I've recently seen that adding custom fact method has changed so I've
followed the wiki "plugin in module" to create my own fact.

I successfully create this fact :
# home.rb

Facter.add("home") do
    setcode do
    ENV['HOME']
    end
end

And try unsuccessfully this one :
# salle.rb

Facter.add("salle") do
    setcode do
    ENV['FACTER_test']
    end
end

Puppet refuse to synchronize my own environments variables unless I
run the deamon manually :
#puppetd -vt --factsync

With my settings, Custom fact works but no with custom environments
variables

What's wrong ?


Serge FELIX


On puppet master :
------------------
# puppet.conf
[puppetmasterd]
    modulepath = /etc/puppet/modules
------------------

------------------
#fileserver.conf
[files]
  path /etc/puppet/files

#[facts]
# I comment this according to the "plugin in module" new method
# path /etc/puppet/modules/custom/plugins/facter

[plugins]

[modules]
----------------------

On client :
---------------------
#puppet.conf
[main]
    server = toto.toto.fr
    # Where Puppet stores dynamic and growing data.
    # The default value is '/var/puppet'.
    vardir = /var/lib/puppet

    # The Puppet log directory.
    # The default value is '$vardir/log'.
    logdir = /var/log/puppet

    # Where Puppet PID files are kept.
    # The default value is '$vardir/run'.
    rundir = /var/run/puppet

    # Where SSL certificates are kept.
    # The default value is '$confdir/ssl'.
    ssldir = $vardir/ssl

    # I comment this according to the "plugin in module" new method
    # pluginsync = true
    factpath = $vardir/lib/facter
-------------------------

--

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.


Reply via email to