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 task or an 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
Puppet version: 6.5 to 6.10.1
Note: If you’re using a version of the
puppetlabs-support_tasks module older than 1.1.1 (17 January 2020), please update the module to use these steps. We renumbered all the tasks in the module at that time.
Learn more about:
Follow these steps to run tasks st0361a (Windows) and/or st0361b (Linux):
By using a task to call the
puppet facts upload function, you can upload facts for all nodes or for selected nodes. 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 using Bolt. Running tasks with Bolt. If you need to run both tasks, run one task first and then the other.
bolt task run support_tasks::st0361a_uploading_facts
bolt task run support_tasks::st0361b_uploading_facts