puppet agent for windows : generate facts.yaml
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 ?