Last active
August 29, 2015 14:05
-
-
Save salgo/f98f837c6e01f45b9a2a to your computer and use it in GitHub Desktop.
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
node.default['mysql']['client']['packages'] = ['mysql55w', 'mysql55w-devel'] | |
node.default['php']['packages'] = ['php54w', 'php54w-devel', 'php54w-cli', 'php54w-pear'] | |
packages = %w{php54w-mysql php54w-mcrypt php54w-pdo php54w-xml php54w-gd} | |
conflicting_packages = %w{mysql-libs} | |
if conflicting_packages | |
conflicting_packages.each do |p| | |
package p do | |
action :remove | |
end | |
resources('package[' + p + ']').run_action(:remove) | |
end | |
end | |
include_recipe "mysql::client" | |
include_recipe 'mysql::ruby' | |
include_recipe 'apache2' | |
include_recipe 'apache2::mod_ssl' | |
include_recipe 'php' | |
packages.each do |p| | |
package p do | |
action :install | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment