Created
October 17, 2011 21:11
-
-
Save avit/1293832 to your computer and use it in GitHub Desktop.
Using chef roles...
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 "development" | |
description "The development environment" | |
# Using a role because chef-solo doesn't support environments. | |
override_attributes "app_environment" => "development", | |
override_attributes "mysql" => { | |
:allow_remote_root => true, | |
:server_root_password => "", | |
:bind_address => '0.0.0.0' | |
} | |
run_list( *%w{ | |
recipe[fakemail] | |
}) | |
## if it's a web server, add: | |
# recipe[php::module_xdebug] | |
# recipe[php::behat] | |
# recipe[php::phpunit] |
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
run_list( *%w{ | |
recipe[apache2] | |
recipe[php] | |
recipe[apache2::mod_php5] | |
recipe[php::module_curl] | |
recipe[php::module_mysql] | |
recipe[php::xmlrpc] | |
}) | |
## if app_environment=development, add: | |
# recipe[php::module_xdebug] | |
# recipe[php::behat] | |
# recipe[php::phpunit] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment