Lumiere
06/16/2022, 7:11 PMLumiere
06/16/2022, 7:12 PMkhudson
06/16/2022, 7:12 PMkhudson
06/16/2022, 7:12 PMPeter
06/16/2022, 7:13 PMLumiere
06/16/2022, 7:16 PMLumiere
06/16/2022, 7:17 PMLumiere
06/16/2022, 7:17 PMPeter
06/16/2022, 7:22 PMLumiere
06/16/2022, 7:26 PMLumiere
06/16/2022, 7:26 PMLumiere
06/16/2022, 7:26 PMLes Shiner
06/16/2022, 7:40 PMLes Shiner
06/16/2022, 7:40 PMnatemccurdy
06/16/2022, 7:41 PMsite.pp
can not control which environment a Puppet agent runs against.
The reason being that an environment is chosen before site.pp ever gets evaluated and compiled into a catalog.Les Shiner
06/16/2022, 7:41 PMLes Shiner
06/16/2022, 7:42 PMnatemccurdy
06/16/2022, 7:42 PM--environment <foo>
when running Puppet or environment=foo
in puppet.conf
b) Use an External Node Classifier (ENC), which will control it on the Puppetserver side.Les Shiner
06/16/2022, 7:43 PMLes Shiner
06/16/2022, 7:43 PMLes Shiner
06/16/2022, 7:49 PMLes Shiner
06/16/2022, 7:50 PMLes Shiner
06/16/2022, 7:50 PMnatemccurdy
06/16/2022, 7:50 PMenvironment
top-level key if you want the ENC to set an environment:
https://puppet.com/docs/puppet/7/nodes_external.html#enc_output_format-section_oxs_qvm_thbnatemccurdy
06/16/2022, 7:51 PM/usr/local/bin/puppet_node_classifier
is executable.
sudo chmod +x /usr/local/bin/puppet_node_classifier
natemccurdy
06/16/2022, 7:51 PM/usr/local/bin/puppet_node_classifier
is executable.
sudo chmod +x /usr/local/bin/puppet_node_classifier
Les Shiner
06/16/2022, 7:51 PM