Skip to content

Instantly share code, notes, and snippets.

@house9
Last active December 18, 2015 09:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save house9/5762219 to your computer and use it in GitHub Desktop.
Save house9/5762219 to your computer and use it in GitHub Desktop.
puppet manifest for postgres 9.2 on ubuntu
exec {
"apt-get update":
path => "/usr/bin"
}
# manage_package_repo => true will satisfy apt_postgresql_org
# include postgresql::package_source::apt_postgresql_org
class { 'postgresql':
version => '9.2',
manage_package_repo => true,
charset => 'UTF8',
locale => 'en_US.UTF-8'
}
class { 'postgresql::server':
}
postgresql::db { 'mydatabasename':
user => 'mydatabaseuser',
password => 'mypassword'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment