Information Technology Reference
In-Depth Information
motd:
message: A production-worthy message of the day
Things get a little more complicated with attribute precedence when environments come into
the picture.
Figure 15-2
shows that an environment has a priority less than a role, but greater
than a cookbook recipe or attribute file.
Figure 15-2. Environment precedence
Because an environment can override and pin specific cookbook versions, it seems more
reasonable that environments should have a higher priority than the default. So in this partic-
ular instance with environments, it does make sense to use
override_attributes
instead of
default_attributes
for any environment attributes.
Putting All the Pieces Together
use of environments and roles as you would in a production Chef setup.