June 2015
Intermediate to advanced
374 pages
7h 19m
English
Once environments have been created, we will need to ensure that the nodes are correctly associated with the environments. Again, as with the management of environments, there are multiple ways to associate a node with an environment.
We can make use of the knife node command with the environment_set argument to set the environment for a node without editing the node object:
$ knife node environment_set node01 production
This will set the environment for node01 as production. The next time chef-client executes on the node, it'll apply the configuration corresponding to the production environment on node01.
We can also edit the node object itself and set the chef_environment property with the required ...
Read now
Unlock full access