Ask Your Question

puppet agent for windows : generate facts.yaml

asked 2013-06-26 21:45:44 -0600

BaltoStar gravatar image

updated 2013-06-26 22:13:37 -0600

My understanding is that for hiera level variables to be auto-populated by facter , first the node's facts.yaml must be generated.

In the master/agent scenario, I assume it's generated on schedule just prior to the agent submitting the node fact set to the master.

But what about for the standalone "puppet apply" scenario ? How to generate facts.yaml and where should it be located for hiera to auto-populate the level variables defined in hiera.yaml ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-06-28 12:09:19 -0600

GregLarkin gravatar image

updated 2013-06-28 22:52:22 -0600

There is no facts.yaml file on each node. Facter simply generates a list of facts and values when it executes. You can see this by running the command:

facter -p

on a Puppet agent node. The facts emitted are sent to the Puppet master which uses them to search the hiera hierarchy and build the catalog of resources to be applied to the agent.

In standalone "puppet apply" mode, all manifest files and hiera data files must be available on the target node. This is often ensured by using rsync to distribute the files to all of the nodes ... (more)

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-06-26 21:45:44 -0600

Seen: 442 times

Last updated: Jun 28 '13