Created
March 18, 2015 21:28
-
-
Save ameir/b9d437b9311c31c1fe4d to your computer and use it in GitHub Desktop.
chef-php-ubuntu
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
case node['platform'] | |
when 'ubuntu' | |
apt_repository "ondrej-php" do | |
uri "http://ppa.launchpad.net/ondrej/php5/ubuntu" | |
distribution node['lsb']['codename'] | |
components ["main"] | |
keyserver "keyserver.ubuntu.com" | |
key "E5267A6C" | |
action :add | |
end | |
when 'debian' | |
apt_repository "dotdeb" do | |
uri "http://packages.dotdeb.org" | |
distribution "stable" | |
components ['all'] | |
key "http://www.dotdeb.org/dotdeb.gpg" | |
action :add | |
end | |
end | |
%w{ php5-mysqlnd php5-mcrypt php5-cli php5-curl php5-json php5-sqlite }.each do |package| | |
package package do | |
action :install | |
end | |
end | |
include_recipe 'php-fpm' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment