Skip to content

Instantly share code, notes, and snippets.

@salgo
Last active August 29, 2015 14:05
Show Gist options
  • Save salgo/f98f837c6e01f45b9a2a to your computer and use it in GitHub Desktop.
Save salgo/f98f837c6e01f45b9a2a to your computer and use it in GitHub Desktop.
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