2012-12-03 08:06:36 +01:00
|
|
|
# This manifest shows an example of how you can use a newer version of
|
2013-01-15 00:13:42 +01:00
|
|
|
# postgres from yum.postgresql.org or apt.postgresql.org, rather than your
|
|
|
|
# system's default version.
|
2012-12-03 08:06:36 +01:00
|
|
|
#
|
|
|
|
# Note that it is important that you use the '->', or a
|
2012-12-04 22:47:49 +01:00
|
|
|
# before/require metaparameter to make sure that the `params`
|
2012-12-03 08:06:36 +01:00
|
|
|
# class is evaluated before any of the other classes in the module.
|
|
|
|
#
|
2013-01-15 00:13:42 +01:00
|
|
|
# Also note that this example includes automatic management of the yumrepo or
|
|
|
|
# apt resource. If you'd prefer to manage the repo yourself, simply pass
|
|
|
|
# 'false' or omit the 'manage_repo' parameter--it defaults to 'false'. You will
|
|
|
|
# still need to use the 'postgresql' class to specify the postgres version
|
2012-12-03 08:06:36 +01:00
|
|
|
# number, though, in order for the other classes to be able to find the
|
|
|
|
# correct paths to the postgres dirs.
|
2013-01-11 23:03:46 +01:00
|
|
|
class { "postgresql":
|
2012-12-04 22:47:49 +01:00
|
|
|
version => '9.2',
|
|
|
|
manage_package_repo => true,
|
2013-01-15 00:13:42 +01:00
|
|
|
}->
|
2012-12-04 22:47:49 +01:00
|
|
|
class { "postgresql::server": }
|