Created
December 28, 2012 18:38
-
-
Save someara/4400651 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
template "/tmp/file1" do | |
action :create | |
# mode "00666" | |
notifies :create, 'template[/tmp/file2]' | |
end | |
template "/tmp/file2" do | |
action :nothing | |
notifies :run, 'execute[hack the planet]' | |
end | |
execute "hack the planet" do | |
command "/bin/echo HACK THE PLANET" | |
action :nothing | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When changing just the perms
[2012-12-28T19:02:26+00:00] INFO: *** Chef 10.16.2 ***
[2012-12-28T19:02:27+00:00] INFO: Setting the run_list to ["recipe[scratch::default]"] from JSON
[2012-12-28T19:02:27+00:00] INFO: Run List is [recipe[scratch::default]]
[2012-12-28T19:02:27+00:00] INFO: Run List expands to [scratch::default]
[2012-12-28T19:02:27+00:00] INFO: Starting Chef Run for scratch-berkshelf
[2012-12-28T19:02:27+00:00] INFO: Running start handlers
[2012-12-28T19:02:27+00:00] INFO: Start handlers complete.
[2012-12-28T19:02:27+00:00] INFO: Processing template[/tmp/file1] action create (scratch::default line 10)
[2012-12-28T19:02:27+00:00] INFO: template[/tmp/file1] mode changed to 666
[2012-12-28T19:02:27+00:00] INFO: Processing template[/tmp/file2] action nothing (scratch::default line 16)
[2012-12-28T19:02:27+00:00] INFO: Processing execute[hack the planet] action nothing (scratch::default line 39)
[2012-12-28T19:02:27+00:00] INFO: template[/tmp/file1] sending create action to template/tmp/file2
[2012-12-28T19:02:27+00:00] INFO: Processing template[/tmp/file2] action create (scratch::default line 16)
[2012-12-28T19:02:27+00:00] INFO: Chef Run complete in 0.081508077 seconds
[2012-12-28T19:02:27+00:00] INFO: Running report handlers
[2012-12-28T19:02:27+00:00] INFO: Report handlers complete