Skip to content

Instantly share code, notes, and snippets.

@stathy
Created October 24, 2014 19:09
Show Gist options
  • Save stathy/704d56febd77bde840f5 to your computer and use it in GitHub Desktop.
Save stathy/704d56febd77bde840f5 to your computer and use it in GitHub Desktop.
a sample code snippet for our ami factory booth demo.
include_recipe 'apt'
include_recipe 'nginx'
directory '/var/www/nginx-default' do
owner 'www-data'
group 'www-data'
mode '0755'
recursive true
action :create
end
file '/var/www/nginx-default/index.html' do
owner 'www-data'
group 'www-data'
mode '0755'
content 'Hello World from Packer!'
action :create
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment