Skip to content

dreamseeker/chef-cookbooks-centos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chef cookbooks for CentOS

This cookbooks builds Web Deveropment Server onto Vargrant VM.

Requirements

platforms

  • CentOS - tested on CentOS 6.5

and Rewrite Your Host Machine's hosts file.

Attributes

apache::default

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 ]

mysqld::default

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 ]

perl_modules::default

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 ]

php::default

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 ]

yum_cfg::default

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

Usage

after download / git clone, copy contains cookbooks to your chef repo's site-cookbooks directory.

nodes/{your_hostname}.json

{
  "run_list": [
    "role[lamp]"
  ]
}

roles/lamp.json

{
  "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": {
  }
}

License and Authors

Authors: TORU KOKUBUN

About

chef cookbooks for CentOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages