Ask Your Question
0

puppet apply and pluginsync

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

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
1

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

Gary Steven gravatar image

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

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
0

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

bmurts gravatar image

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

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

Comments

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 -0500 )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

Stats

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

Seen: 1,436 times

Last updated: Jul 29 '14