Skip to content

Instantly share code, notes, and snippets.

@jasongrimes
Created June 5, 2012 21:11
Show Gist options
  • Save jasongrimes/2877988 to your computer and use it in GitHub Desktop.
Save jasongrimes/2877988 to your computer and use it in GitHub Desktop.
Sample Chef role description for a LAMP web server.
name "webserver"
description "Web server role"
all_env = [
"role[base]",
"recipe[php]",
"recipe[php::module_mysql]",
"recipe[apache2]",
"recipe[apache2::mod_php5]",
"recipe[apache2::mod_rewrite]",
]
run_list(all_env)
env_run_lists(
"_default" => all_env,
"prod" => all_env,
#"dev" => all_env + ["recipe[php::module_xdebug]"],
"dev" => all_env,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment