FAQ
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 [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.

Search Discussions

  • Christophe L at May 18, 2012 at 11:58 am
    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 [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.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppuppet-users @
categoriespuppet
postedMay 18, '12 at 5:40a
activeMay 18, '12 at 11:58a
posts2
users1
websitepuppetlabs.com

1 user in discussion

Christophe L: 2 posts

People

Translate

site design / logo © 2023 Grokbase