7,166
edits
(→search) |
|||
Line 66: | Line 66: | ||
[http://www.egrep.jp/wiki/index.php/Ubuntu_10.04_LTS_%28Lucid_Lynx%29_AMI 普段やっている設定]を cookbook にまとめ中 | [http://www.egrep.jp/wiki/index.php/Ubuntu_10.04_LTS_%28Lucid_Lynx%29_AMI 普段やっている設定]を cookbook にまとめ中 | ||
[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 をうまく組み合わせると出来る | |||
cookbook_file とか template とか file で create_if_missing の組み合わせと、さっきの action :nothing と notifies でいろいろ出来そう | |||
cookbook_file と template は 出来た対象ファイルの内容をチェックして、同じなら処理しないという挙動になる。また file は content の組み合わせでは、 backup は取ってくれるが、内容のチェックはしてくれないようだ。 | |||
== knife-ec2 == | == knife-ec2 == |