]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
(#9080) Add facts from /etc/puppetlabs/facts.d
authorJeff McCune <jeff@puppetlabs.com>
Wed, 17 Aug 2011 23:13:59 +0000 (16:13 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Wed, 17 Aug 2011 23:25:29 +0000 (16:25 -0700)
commit95c88a1305a013b3bebded2a3d1d173079cc83ed
tree48b36ad93c290d4d3b6d734627504741e95ccb94
parente8fb6917d102d8a45d5682b79f33b1ac0d52d73b
(#9080) Add facts from /etc/puppetlabs/facts.d

This fact is a direct copy of R.I.'s work at
https://github.com/ripienaar/facter-facts

This is necessary plumbing to allow the installer to write a simple text
file based on the role the node is receiving.  For example:

    $ cat /etc/puppetlabs/facts.d/puppet_enterprise_mcollective.txt
    fact_stomp_port=61613
    fact_stomp_server=puppetmaster
    fact_is_puppetagent=true
    fact_is_puppetmaster=true

The mcollectivepe module relies on these facts being set and we need a
persistent place to write them during the interview process and later
read them when puppet agent runs to configure MCollective on the agent
systems.

Since stdlib is a public module, both /etc/facts.d and
/etc/puppetlabs/facts.d are scanned for static facts.
lib/facter/facter_dot_d.rb [new file with mode: 0644]