Last active
August 29, 2015 14:01
-
-
Save bluSch/0193dd257cd2277cd2af to your computer and use it in GitHub Desktop.
change for php version
This file contains 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
# in php/recipes/package.rb | |
node['php']['packages'].each do |pkg| | |
if pkg.instance?(Hash) | |
package pkg['name'] do | |
action :install | |
version pkg['version'] | |
end | |
else | |
package pkg do | |
action :install | |
end | |
end | |
end | |
======================================== | |
# in php/attributes/default.rb | |
case node["platform_family"] | |
... | |
when "debian" | |
... | |
default['php']['packages'] = ['php5-cgi', {'name' => 'php5', 'version' => '5.3.2'}, 'php5-dev', 'php5-cli', 'php-pear'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment