Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Install PHP 5.4 on AWS Opsworks Ubuntu 12.04 (note that Ubuntu 14.04 will install PHP 5.5 by default)
# Add this to the "setup" activity:
apt_repository "custom-php5-oldstable" do
uri ""
distribution node['lsb']['codename']
components ["main"]
keyserver ""
key "E5267A6C"
action :nothing
subscribes :add, "template[/etc/sudoers]", :immediately
notifies :run, "execute[custom-apt-get-update]", :immediately
execute 'custom-apt-get-update' do
command 'apt-get update'
action :nothing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment