Add actual postgresl module from puppetlabs
[mirror/dsa-puppet.git] / 3rdparty / modules / postgresql / examples / official-postgresql-repos.pp
1 # This manifest shows an example of how you can use a newer version of
2 # postgres from yum.postgresql.org or apt.postgresql.org, rather than your
3 # system's default version.
4 #
5 # Note that it is important that you use the '->', or a
6 # before/require metaparameter to make sure that the `params`
7 # class is evaluated before any of the other classes in the module.
8 #
9 # Also note that this example includes automatic management of the yumrepo or 
10 # apt resource.  If you'd prefer to manage the repo yourself, simply pass
11 # 'false' or omit the 'manage_repo' parameter--it defaults to 'false'.  You will
12 # still need to use the 'postgresql' class to specify the postgres version
13 # number, though, in order for the other classes to be able to find the
14 # correct paths to the postgres dirs.
15 class { 'postgresql':
16     version               => '9.2',
17     manage_package_repo   => true,
18 }->
19 class { 'postgresql::server': }