Skip to content

Instantly share code, notes, and snippets.

@eamelink
Created October 24, 2012 16:26
Show Gist options
  • Save eamelink/3947127 to your computer and use it in GitHub Desktop.
Save eamelink/3947127 to your computer and use it in GitHub Desktop.
Chef odd cookbook_file mode
This is in my cookbook:
cookbook_file "/tmp/cleanup.sh" do
mode "0744"
end
And this is what Chef logs:
[2012-10-24T17:58:28+02:00] INFO: Processing cookbook_file[/tmp/cleanup.sh] action create (basebox::basebox-cleanup line 1)
[2012-10-24T17:58:28+02:00] INFO: cookbook_file[/tmp/cleanup.sh] owner changed to 0
[2012-10-24T17:58:28+02:00] INFO: cookbook_file[/tmp/cleanup.sh] group changed to 0
[2012-10-24T17:58:28+02:00] INFO: cookbook_file[/tmp/cleanup.sh] mode changed to 600
[2012-10-24T17:58:28+02:00] INFO: cookbook_file[/tmp/cleanup.sh] created file /tmp/cleanup.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment