7,166
edits
Line 60: | Line 60: | ||
[https://github.com/nxhack/chef nxhack / chef My recipes (opscode chef cookbooks) : Bootstrap - Configuration - Orchestration] | [https://github.com/nxhack/chef nxhack / chef My recipes (opscode chef cookbooks) : Bootstrap - Configuration - Orchestration] | ||
★ 料理のコツ ★ | == ★ 料理のコツ ★ == | ||
一度だけ処理するとか、纏めて処理するとかは、action :nothing と notifies をうまく組み合わせると出来る | 一度だけ処理するとか、纏めて処理するとかは、action :nothing と notifies をうまく組み合わせると出来る | ||
Line 67: | Line 67: | ||
cookbook_file と template は 出来た対象ファイルの内容をチェックして、同じなら処理しないという挙動になる。また file は content の組み合わせでは、 backup は取ってくれるが、内容のチェックはしてくれないようだ。 | cookbook_file と template は 出来た対象ファイルの内容をチェックして、同じなら処理しないという挙動になる。また file は content の組み合わせでは、 backup は取ってくれるが、内容のチェックはしてくれないようだ。 | ||
execute, script, ruby_block とかの Resource に付ける名前は、同じ名前は付けてはいけない | |||
== knife-ec2 == | == knife-ec2 == |