Skip to content

Instantly share code, notes, and snippets.

@chsh
Created June 10, 2014 14:17
Show Gist options
  • Select an option

  • Save chsh/f027b26734c092d906f2 to your computer and use it in GitHub Desktop.

Select an option

Save chsh/f027b26734c092d906f2 to your computer and use it in GitHub Desktop.
Install PostgreSQL(PGDG) to Amazon Linux.
Vagrant.configure(2) do |config|
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = %w(site-cookbooks cookbooks)
chef.add_recipe 'postgresql'
chef.json = {
postgresql: {
version: '9.3',
enable_pgdg_yum: true,
client: { packages: %w(postgresql93-devel) },
pgdg: {
repo_rpm_url: {
'9.3' => {
amazon: {
'2014' => {
"x86_64" => 'http://yum.postgresql.org/9.3/redhat/rhel-6-x86_64/pgdg-redhat93-9.3-1.noarch.rpm'
}
}
}
}
}
}
}
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment