If your agents are configured to run using cached catalogs, facts are not up to date on the primary server. You can make sure that fact-based classification and automation behave as expected by uploading facts to the primary server using a scheduled or ad hoc task. Even if your agents aren’t configured to run using cached catalogs, you can use a task to upload facts at any time.
Version and installation information
PE version: All supported
Installation type: All supported
Note: If you’re already using the
puppetlabs-support_tasks module, please update it to the most recent version.
You can upload facts for all nodes or for selected nodes by using a task to call the
puppet facts upload function. To make sure that all facts are uploaded, we recommend that you run the task on all nodes. However, you might prefer to run the task on selected nodes. For example, if you only have a few nodes that are configured to run using cached catalogs, you might want to run the task only on those nodes.
Download and install the
puppetlabs-support_tasksmodule which includes the tasks for this solution.
Run the task.
You can run task
st0361_uploading_factsas a scheduled or as an ad hoc task on all nodes or selected nodes. To run the task on all nodes, run the task on the All Nodes node group. To run the task on selected nodes, pick a method from our documentation to run the task in the console.