Skip to content

Instantly share code, notes, and snippets.

@bluSch
Last active August 29, 2015 14:01
Show Gist options
  • Save bluSch/0193dd257cd2277cd2af to your computer and use it in GitHub Desktop.
Save bluSch/0193dd257cd2277cd2af to your computer and use it in GitHub Desktop.
change for php version
# 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