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.
Solution
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_tasks
module which includes the tasks for this solution. -
Run the task.
You can run task
st0361_uploading_facts
as 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.
How can we improve this article?
0 comments
Please sign in to leave a comment.
Related articles