-
-
Save ptdorf/79dfb26c28e6bf32291d63977489222e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
site :opscode | |
cookbook 'apt' | |
cookbook 'nginx' | |
metadata |
This file contains hidden or 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
source 'https://rubygems.org' | |
gem 'berkshelf' |
This file contains hidden or 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
name 'hello-world' | |
maintainer 'Martin Cozzi' | |
maintainer_email '[email protected]' | |
license 'MIT' | |
description 'Displays hello world when querying localhost:80' | |
version '0.0.1' | |
%w{ apt nginx }.each do |cookbook| | |
depends cookbook | |
end | |
supports 'ubuntu' |
This file contains hidden or 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
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