Skip to content

Instantly share code, notes, and snippets.

@richseviora
Last active June 22, 2016 20:57
Show Gist options
  • Save richseviora/9a0871dd3fd8890f1e3e to your computer and use it in GitHub Desktop.
Save richseviora/9a0871dd3fd8890f1e3e to your computer and use it in GitHub Desktop.
Opsworks Override for PostgreSQL Installation
# Override for Opsworks as a result of bug causing postgres8 install to fail.
# Should be placed in the following path from the custom cookbook repository root:
# /opsworks_postgresql/recipes/client_install.rb
#
# Don't forget your standard metadata file in /opsworks_postgresql/metadata.rb
#
# For issue https://github.com/aws/opsworks-cookbooks/issues/347
package "postgresql-devel" do
package_name value_for_platform(
["centos","redhat","fedora","amazon"] => {"default" => "postgresql93-devel"},
"ubuntu" => {"default" => "libpq-dev"}
)
action :install
end
package "postgresql-client" do
package_name value_for_platform(
["centos","redhat","fedora","amazon"] => {"default" => "postgresql93"},
"default" => "postgresql-client"
)
action :install
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment