Ask Your Question

Puppet run failing because of missing facts on newly kickstarted machines

asked 2013-09-19 15:59:53 -0600

ujjain gravatar image

I have a Puppet fact called "location" that is located in /etc/puppet/modules/facter/lib/facter/extra_info.rb on the Puppetmaster.

Unfortunately the motd-module is failing on newly kickstarted machines with the error that the "location"-fact does not yet exist. This means that the Puppet agent run is quiting entirely, ergo not working.

How can I make the extra_info.rb be loaded first, so that the motd-module that depends on it, won't make Puppet quit it's run, because of missing facts?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-09-19 17:43:40 -0600

Stefan gravatar image

Make sure you run your agent with --pluginsync (doc) so custom facts are synced onto your agent. The puppet agent will download and evaluate the new fact before it will request its catalog.

edit flag offensive delete link more

answered 2013-09-19 17:43:41 -0600

GregLarkin gravatar image

Unfortunately, this has been a problem for a while, and this thread contains a description of the problem and some possible workarounds:

By using a --tags distro_facts (NB: the distro_facts tag does not exist in your manifests) option on the first puppet run , you can distribute the facts quickly. Then run puppet again with the --tags option to execute your manifests for real.

edit flag offensive delete link more

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: 2013-09-19 15:59:53 -0600

Seen: 542 times

Last updated: Sep 19 '13