Skip to content

Instantly share code, notes, and snippets.

@jmara
Created October 31, 2014 09:23
Show Gist options
  • Save jmara/ecca4b77d0481a2d3dda to your computer and use it in GitHub Desktop.
Save jmara/ecca4b77d0481a2d3dda to your computer and use it in GitHub Desktop.
include_recipe "apache"
include_recipe "php"
# Just to make it clear ;)
node.default["myface"]["template"] = "production.conf.erb"
if node.recipes.include?("myface::dev")
include_recipe "myface::dev"
end
template "foo" do
source node["myface"]["template"]
end
node.set["myface"]["template"] = "dev.conf.erb"
# do the depen-dance .... :D
"myface::default","myface::dev"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment