Ask Your Question

puppet apply and pluginsync

asked 2014-01-06 09:38:53 -0600

liamjbennett gravatar image

I am using puppet in a masterless mode (puppet apply) and have some custom facts loaded in the module. The facts are loaded correctly and available during the puppet run however if I run facter independently then the facts do not appear.

I can see that the custom facts are not sync'd to /var/lib/puppet/lib/facter or /var/facts.d

Is there something I am missing?

Environment: Windows 2008 R2 puppet 3.4.1 facter 1.7.4

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2014-07-28 04:13:30 -0600

Gary Steven gravatar image

updated 2014-07-29 03:10:06 -0600

You can mimic pluginsync in masterless using something like the following.

file { $::settings::libdir:
      ensure  => directory,
      source  => 'puppet:///plugins',
      recurse => true,
      purge   => true,
      backup  => false,
      noop    => false

Once files are in the proper location you can use facter -p to load the Puppet Library path and access all of your facts

edit flag offensive delete link more


That's awesome! Thx.

Cardil gravatar imageCardil ( 2018-09-11 16:24:40 -0600 )edit

answered 2014-01-06 15:49:41 -0600

bmurts gravatar image

updated 2014-01-06 15:50:06 -0600

I'm fairly certain this is the intended behavior.

In my PE 2.8.3 environment (facter v1.6.17), I have a few module-specific facts and they are visible during a Puppet run, but I just tested running facter and sudo facter the custom facts aren't displayed.

edit flag offensive delete link more


If you are running in a master / agent configuration try using `facter -p` to load the Puppet related facts.

Gary Steven gravatar imageGary Steven ( 2014-07-28 04:21:51 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-01-06 09:38:53 -0600

Seen: 1,699 times

Last updated: Jul 29 '14