This cookbooks builds Web Deveropment Server onto Vargrant VM.
CentOS
- tested on CentOS 6.5
and Rewrite Your Host Machine's hosts file.
Key | Type | Description | Default |
---|---|---|---|
['apache']['vhosts']['ip_address'] | String ( IP Address ) | VM's IP Address | 192.168.50.20 |
['apache']['packages'] | Array | install packages list | %w[ httpd httpd-devel mod_ssl ] |
Key | Type | Description | Default |
---|---|---|---|
['mysqld']['root_pwd'] | String | root Password | vagrant |
['mysqld']['cnf']['charset'] | String | Character set | utf8 |
['mysqld']['cnf']['storage_engine'] | String | Storage Engine | InnoDB |
['mysqld']['packages'] | Array | install packages list | %w[ mysql-server mysql-devel ] |
Key | Type | Description | Default |
---|---|---|---|
['perl_modules']['packages'] | Array | install packages list | %w[ perl-core perl-Archive-Tar perl-Archive-Zip perl-Authen-SASL perl-Class-DBI-mysql perl-Crypt-DSA perl-Crypt-SSLeay perl-Digest-SHA1 perl-Cache-Memcached perl-DBI perl-DBD-mysql perl-Digest-SHA perl-GD perl-HTML-Parser perl-IO-Compress-Zlib perl-IO-Socket-SSL perl-IPC-Run perl-Imager perl-Mail-Sendmail perl-Net-SSLeay perl-Net-SMTP-SSL perl-Net-SMTP-TLS perl-XML-Parser ImageMagick-perl ] |
Key | Type | Description | Default |
---|---|---|---|
['php']['ini']['memory_limit'] | String | php.ini memory_limit | 1024M |
['php']['ini']['upload_max_filesize'] | String | php.ini upload_max_filesize | 512M |
['php']['ini']['post_max_size'] | String | php.ini post_max_size | 578M |
['php']['ini']['max_execution_time'] | Integer | php.ini max_execution_time | 60 |
['php']['ini']['pmax_file_uploads'] | Integer | php.ini pmax_file_uploads | 20 |
['php']['packages']['common'] | Array | install packages list --enablerepo=remi |
%w[ php php-devel php-mbstring php-gd php-pear php-xml php-pdo php-mysqlnd php-bcmath ] |
['php']['packages']['repo'] | Array | install packages list --enablerepo=epel,remi,rpmforge |
%w[ php-mcrypt ] |
Key | Type | Description | Default |
---|---|---|---|
['yum']['repo']['epel'] | String ( URI ) | epel repository | http://ftp-srv2.kddilabs.jp/Linux/distributions/fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm |
['yum']['repo']['rpmforge'] | String ( URI ) | rpmforge repository | http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm |
['yum']['repo']['remi'] | String ( URI ) | remi repository | http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
after download / git clone, copy contains cookbooks to your chef repo's site-cookbooks directory.
{
"run_list": [
"role[lamp]"
]
}
{
"name": "lamp",
"description": "build CentOS Development Web Server with LAMP",
"chef_type": "role",
"json_class": "Chef::Role",
"default_attributes": {
},
"run_list": [
"recipe[yum_cfg::add_repo]",
"recipe[apache]",
"recipe[apache::vhosts]",
"recipe[iptables]",
"recipe[php]",
"recipe[mysqld]",
"recipe[perl_modules]",
"recipe[yum_cfg::update]"
],
"override_attributes": {
}
}
Authors: TORU KOKUBUN