Information Technology Reference
In-Depth Information
Figure 8-5. Chef expands any include_recipe references
Perform a
kitchen converge
and inspect the resulting message. When there is a duplicate
attribute value set at the same priority level, the last attribute value setting wins. In this case,
with the
include_recipe
expansion,
node.default["motd-attributes"]["company"]
is
set twice; the last value set before the
template
resource is what is used—“the greatest com-
pany in the universe”:
$
kitchen converge
$
kitchen login
Last login: Mon Jul 21 11:34:05 2014 from 10.0.2.2
Welcome to the best company in the universe
It's a wonderful day today!
The hostname of this node is 10.0.2.15
The IP address of this node is default-centos65
[vagrant@default-centos65 ~]$
exit
logout
Connection to 127.0.0.1 closed.