Skip to content

Instantly share code, notes, and snippets.

@nstielau
Last active December 10, 2015 18:48
Show Gist options
  • Save nstielau/4476617 to your computer and use it in GitHub Desktop.
Save nstielau/4476617 to your computer and use it in GitHub Desktop.
Chef Symlink Vector Example
execute "say_hello_to_bob" do
command "echo 'hello again' >> /home/bob/hello.txt"
end
execute "say_hello_to_bob" do
user 'bob'
group 'bob'
command "echo 'hello again' >> /home/bob/hello.txt"
end
template "/home/bob/hello.txt" do
variables(:content => "Hey bob!")
end
file "/home/bob/hello.txt" do
content "Hey bob!"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment