Tried to setup a facter module but it doesn't work. Help needed please.

86 views
Skip to first unread message

Christophe L

unread,
May 18, 2012, 1:40:12 AM5/18/12
to puppet...@googlegroups.com
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

Christophe L

unread,
May 18, 2012, 7:58:26 AM5/18/12
to puppet...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages