[root@jutish-crushing ~]# grep environment /etc/puppetlabs/puppet/enc.sh |
environment: env1 |
|
[root@jutish-crushing ~]# puppet agent -t |
Notice: Local environment: 'production' doesn't match server specified node environment 'env1', switching agent to 'env1'. |
Info: Using environment 'env1' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Info: Caching catalog for jutish-crushing.delivery.puppetlabs.net |
Info: Applying configuration version '1638880188' |
Info: Creating state file /opt/puppetlabs/puppet/cache/state/state.yaml |
Notice: Applied catalog in 0.01 seconds |
|
[root@jutish-crushing ~]# sed -i 's/env1/env2/' /etc/puppetlabs/puppet/enc.sh |
|
[root@jutish-crushing ~]# puppet agent -t |
Info: Using environment 'env1' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Notice: Local environment: 'env1' doesn't match server specified environment 'env2', restarting agent run with environment 'env2' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Info: Caching catalog for jutish-crushing.delivery.puppetlabs.net |
Info: Applying configuration version '1638880206' |
Notice: Applied catalog in 0.01 seconds |
|
[root@jutish-crushing ~]# puppet agent -t |
Info: Using environment 'env2' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Info: Caching catalog for jutish-crushing.delivery.puppetlabs.net |
Info: Applying configuration version '1638880213' |
Notice: Applied catalog in 0.02 seconds |
|
[root@jutish-crushing ~]# sed -i 's/env2/env3/' /etc/puppetlabs/puppet/enc.sh |
|
[root@jutish-crushing ~]# puppet agent -t |
Info: Using environment 'env2' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Notice: Local environment: 'env2' doesn't match server specified environment 'env3', restarting agent run with environment 'env3' |
Info: Retrieving pluginfacts |
Info: Retrieving plugin |
Info: Caching catalog for jutish-crushing.delivery.puppetlabs.net |
Info: Applying configuration version '1638880224' |
Notice: Applied catalog in 0.01 seconds |
|