Created
May 28, 2014 16:05
-
-
Save gionn/333761ac8a39765e0e5c to your computer and use it in GitHub Desktop.
Chef php application example recipe
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 "apache2::default" | |
include_recipe "apache2::mod_php5" | |
application 'wordpress' do | |
path '/var/www' | |
owner 'www-data' | |
group 'www-data' | |
repository 'https://github.com/WordPress/WordPress.git' | |
revision '3.9.1' | |
end | |
web_app "my_vhost" do | |
server_name node['hostname'] | |
server_aliases [node['fqdn'], "my-site.example.com"] | |
docroot "/var/www" | |
end | |
php_pear "apc" do | |
action :install | |
directives(:shm_size => 256) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment