HomePhorge

(#3910) Make puppet agent use environment specified in catalog
ce6fecc865eaUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#3910) Make puppet agent use environment specified in catalog

If there is an environment specified in the catalog to be applied (i.e. an
external node classifier was used and gave an environment for this node) the
puppet agent will switch to that environment.

When switching environment, the agent needs to get facts and plugins again
using the new environment, and then try fetching the catalog again using the
new facts, since this may change the catalog. It loops in this process several
times, until the environment doesn't change. If it fails to stabilize in a
limited number of tries it will raise an error and abort the run.

This change also means that the prerun command runs after fetching catalog but before
applying. It previously ran before fetching the catalog.

Details

Provenance
Patrick Carlisle <patrick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUa15a572c93d9: Remove unused clear method in configurer
Branches
Unknown
Tags
Unknown

Event Timeline

Patrick Carlisle <patrick@puppetlabs.com> committed rPUce6fecc865ea: (#3910) Make puppet agent use environment specified in catalog (authored by Patrick Carlisle <patrick@puppetlabs.com>).Mar 9 2012, 12:26 AM