When you install the machine by running
chef-solo
or
chef-client
- , . - attributes. ( ) , : , , json .
, ,
- json
chef-client chef-solo
: apache config.
json : my_attrs.json
{
"apache": {
"listen_port": "81",
"listen_path": "/myapp"
}
}
:
node[:apache][:listen_port]
node[:apache][:listen_path]
chef-client chef-solo -j.
chef-solo -j my_attrs.json
my_attrs.json - , URL-.
chef-solo -j http: