Created
August 26, 2013 18:24
-
-
Save jdowning/6344768 to your computer and use it in GitHub Desktop.
PostgreSQL Cluster for Vagrant
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
forge "http://forge.puppetlabs.com" | |
mod "puppetlabs/apt" | |
mod "puppetlabs/ntp" | |
mod "puppetlabs/stdlib" | |
mod "puppetlabs/postgresql" |
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 { | |
class { 'apt': } | |
class { 'ntp': } | |
class { 'postgresql': | |
version => '9.2', | |
manage_package_repo => true, | |
}-> | |
class { 'postgresql::contrib': }-> | |
class { 'postgresql::server': | |
config_hash => { | |
'listen_addresses' => '*', | |
'ipv4acls' => ['host all all 0.0.0.0/0 md5'], | |
}, | |
} | |
} |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.provision :puppet do |puppet| | |
puppet.manifest_file = "site.pp" | |
puppet.module_path = "./modules" | |
end | |
config.vm.define :pg1 do |pg1| | |
pg1.vm.box = "precise64" | |
pg1.vm.hostname = 'pg1' | |
end | |
config.vm.define :pg2 do |pg2| | |
pg2.vm.box = "precise64" | |
pg2.vm.hostname = 'pg2' | |
end | |
config.vm.define :pg3 do |pg3| | |
pg3.vm.box = "precise64" | |
pg3.vm.hostname = 'pg3' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment