Christophe L
2012-May-18 05:40 UTC
[Puppet Users] Tried to setup a facter module but it doesn''t work. Help needed please.
Hello, I tried to setup the following facter module provided by the community: aedwards-iproute2facts https://github.com/AbbyEdwards/puppet-iproute2facts but the facts doesn''t appear on the client node when running facter. Could you tell me what I did wrong please ? Below, all the steps I did. Thanks in advance for your help. Best regards, Christophe 1) I downloaded the module from GitHub https://github.com/downloads/AbbyEdwards/puppet-iproute2facts/iproute2facts-0.1.0.tar.gz 2) on the puppet master, I put the module in /etc/puppet/modules/ so I got all the files in /etc/puppet/modules/aedwards-iproute2facts/ such /etc/puppet/modules/aedwards-iproute2facts/metadata.json ... /etc/puppet/modules/aedwards-iproute2facts/lib/ /etc/puppet/modules/aedwards-iproute2facts/lib/facter/ /etc/puppet/modules/aedwards-iproute2facts/lib/facter/iproute2.rb ... 3) I enabled Pluginsync in both puppet master and puppet client I added [main] ... pluginsync=true in puppet.conf cf http://docs.puppetlabs.com/guides/plugins_in_modules.html 4) restarted apache service on puppet master 5) run the following command on puppet client node puppet agent --test --no-daemonize --onetime --server tddv-pup-mas-01.eolas-services.com -d -v and got the following output about the facter module notice: /File[/var/lib/puppet/lib/facter]/ensure: created debug: /File[/var/lib/puppet/lib/facter]: The container /var/lib/puppet/lib will propagate my refresh event notice: /File[/var/lib/puppet/lib/facter/*iproute2.rb*]/ensure: defined content as ''{md5}2b856a6e6be8aabb79362ad45b3e8697'' debug: /File[/var/lib/puppet/lib/facter/*iproute2.rb*]: The container /var/lib/puppet/lib will propagate my refresh event debug: Finishing transaction 70334059810100 info: Loading downloaded plugin /var/lib/puppet/lib/facter/*iproute2.rb* info: Loading facts in /var/lib/puppet/lib/facter/*iproute2.rb* 6) running facter on the client node as root => no iproute2_* facts are reported -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/_nNz0FtXQwgJ. 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.
Christophe L
2012-May-18 11:58 UTC
[Puppet Users] Re: Tried to setup a facter module but it doesn''t work. Help needed please.
Hello, I found my problem: I have to run facter -p in order to get the fact from the new facter module. cf. http://docs.puppetlabs.com/guides/custom_facts.html Best regards, Christophe Le vendredi 18 mai 2012 09:40:12 UTC+4, Christophe L a écrit :> > Hello, > > I tried to setup the following facter module provided by the community: > aedwards-iproute2facts > https://github.com/AbbyEdwards/puppet-iproute2facts > but the facts doesn''t appear on the client node when running facter. > > Could you tell me what I did wrong please ? > > Below, all the steps I did. > > Thanks in advance for your help. > > Best regards, > Christophe > > 1) I downloaded the module from GitHub > > https://github.com/downloads/AbbyEdwards/puppet-iproute2facts/iproute2facts-0.1.0.tar.gz > > 2) on the puppet master, I put the module in /etc/puppet/modules/ > so I got all the files in > /etc/puppet/modules/aedwards-iproute2facts/ > such > /etc/puppet/modules/aedwards-iproute2facts/metadata.json > ... > /etc/puppet/modules/aedwards-iproute2facts/lib/ > /etc/puppet/modules/aedwards-iproute2facts/lib/facter/ > /etc/puppet/modules/aedwards-iproute2facts/lib/facter/iproute2.rb > ... > > 3) I enabled Pluginsync in both puppet master and puppet client > I added > [main] > ... > pluginsync=true > in puppet.conf > cf http://docs.puppetlabs.com/guides/plugins_in_modules.html > > 4) restarted apache service on puppet master > > 5) run the following command on puppet client node > puppet agent --test --no-daemonize --onetime --server > tddv-pup-mas-01.eolas-services.com -d -v > > and got the following output about the facter module > > notice: /File[/var/lib/puppet/lib/facter]/ensure: created > debug: /File[/var/lib/puppet/lib/facter]: The container > /var/lib/puppet/lib will propagate my refresh event > notice: /File[/var/lib/puppet/lib/facter/*iproute2.rb*]/ensure: defined > content as ''{md5}2b856a6e6be8aabb79362ad45b3e8697'' > debug: /File[/var/lib/puppet/lib/facter/*iproute2.rb*]: The container > /var/lib/puppet/lib will propagate my refresh event > debug: Finishing transaction 70334059810100 > info: Loading downloaded plugin /var/lib/puppet/lib/facter/*iproute2.rb* > info: Loading facts in /var/lib/puppet/lib/facter/*iproute2.rb* > > 6) running facter on the client node as root > => no iproute2_* facts are reported > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/J7iX5lNj-RUJ. 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.