Created
January 30, 2014 17:18
-
-
Save mikesimons/8713766 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
if node["apache"] && node["apache"]["sites"] | |
node["apache"]["sites"].each do |name, site| | |
web_app name do | |
server_name name | |
server_aliases site["aliases"] || [] | |
docroot site["docroot"] | |
application_name site["application_name"] || name | |
if !site["template_cookbook"] | |
cookbook "apache" | |
end | |
if site["template"] | |
template site["template"] | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment