-
Notifications
You must be signed in to change notification settings - Fork 124
Node Attributes
ryotarai edited this page Dec 22, 2014
·
4 revisions
You can pass node-specific attributes to Itamae by --node-json
option.
$ cat node.json
{"name": "app-1"}
$ cat template.erb
<%= node[:name] %>
$ cat recipe.rb
execute "hostname #{node[:name]}"
template "/path/to/dest" do
source "template.erb"
end
$ itamae local --node-json node.json recipe.rb