I have some facter file to distribute before running puppet on the platform. The problem is : how can i send the facter local.rb file so the rest of the .pp file take into account the new facts created ? ex: i have sudopath as a facter fact and one sudoers class that need that sudopath to work. How do you model that ? it seems puppet would have to rerun after the new local.rb is downloaded ? -- Cordialement, Ghislain _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> I have some facter file to distribute before running puppet on the > platform. > > The problem is : > > how can i send the facter local.rb file so the rest of the .pp file take > into account the new facts created ? > > > ex: i have sudopath as a facter fact and one sudoers class that need > that sudopath to work. How do you model that ? > > it seems puppet would have to rerun after the new local.rb is downloaded ?I haven''t had a chance to document it yet, but you can have Puppet automatically distribute new facts for you: luke@culain(0) $ puppetd --genconfig | grep ''fact..*='' # factdest = $vardir/facts # factsource = puppet://$server/facts # factsync = false # factsignore = .svn CVS # factpath = $vardir/facts Just stick your facts in the factpath, set up a ''facts'' file source on your file server, and enable factsync on your clients. -- True Terror is to wake up one morning and discover that your high school class is running the country. -- Kurt Vonnegut --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com
great ! i have to try that out :) Cordialement, Ghislain> > I haven''t had a chance to document it yet, but you can have Puppet > automatically distribute new facts for you: > > luke@culain(0) $ puppetd --genconfig | grep ''fact..*='' > # factdest = $vardir/facts > # factsource = puppet://$server/facts > # factsync = false > # factsignore = .svn CVS > # factpath = $vardir/facts > > Just stick your facts in the factpath, set up a ''facts'' file source on > your file server, and enable factsync on your clients. > >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
thanks it seems to do the trick :) i just have one strange notice: info: Retrieving facts err: fact_collector/file=/usr/local/.aqadmin/puppet/var/facts/group: change from aqusers to 103 failed: Could not find group 103 err: fact_collector/file=/usr/local/.aqadmin/puppet/var/facts/local.rb/group: change from aqusers to 103 failed: Could not find group 103 is it normal ? regards, Ghislain.> I haven''t had a chance to document it yet, but you can have Puppet > automatically distribute new facts for you: > > luke@culain(0) $ puppetd --genconfig | grep ''fact..*='' > # factdest = $vardir/facts > # factsource = puppet://$server/facts > # factsync = false > # factsignore = .svn CVS > # factpath = $vardir/facts > > Just stick your facts in the factpath, set up a ''facts'' file source on > your file server, and enable factsync on your clients. > >_______________________________________________ Puppet-users mailing list Puppet-users@madstop.com https://mail.madstop.com/mailman/listinfo/puppet-users
Adnet Ghislain wrote:> thanks it seems to do the trick :) > i just have one strange notice: > > info: Retrieving facts > err: fact_collector/file=/usr/local/.aqadmin/puppet/var/facts/group: > change from aqusers to 103 failed: Could not find group 103 > err: > fact_collector/file=/usr/local/.aqadmin/puppet/var/facts/local.rb/group: > change from aqusers to 103 failed: Could not find group 103 > > is it normal ?It''s a small bug -- it''s not specifying that the downloaded facts should be owned by root, so it''s using the remote user and group. I''ll submit a bug on that. -- Never try to tell everything you know. It may take too short a time. --Norman Ford --------------------------------------------------------------------- Luke Kanies | http://reductivelabs.com | http://madstop.com