Chef cheat sheet: Difference between revisions

Line 35: Line 35:
knife ec2 server create -N node01.egrep.jp -x ubuntu -r "role[node01],role[ec2-base]" -d ubuntu10.04-apt-ec2
knife ec2 server create -N node01.egrep.jp -x ubuntu -r "role[node01],role[ec2-base]" -d ubuntu10.04-apt-ec2
</pre>
</pre>
== knife bootstrap ==
<pre>
knife bootstrap IPADDRESS -N node01.egrep.jp -i ~/.ssh/ssh_key.pem -x ubuntu --sudo -d ubuntu10.04-apt-ec2
</pre>
[http://wiki.opscode.com/display/chef/Custom+Knife+Bootstrap+Script Custom Knife Bootstrap Script]
Bootstrap => Configuration => Orchestration の区別をして考える事が大事


== role ==
== role ==
Line 44: Line 53:
knife role show ec2-common -F json
knife role show ec2-common -F json
</pre>
</pre>
== knife bootstrap ==
<pre>
knife bootstrap IPADDRESS -N node01.egrep.jp -i ~/.ssh/ssh_key.pem -x ubuntu --sudo -d ubuntu10.04-apt-ec2
</pre>
[http://wiki.opscode.com/display/chef/Custom+Knife+Bootstrap+Script Custom Knife Bootstrap Script]
Bootstrap => Configuration => Orchestration の区別をして考える事が大事