From 5963a0a4b9df0837c9fdb3ac0ae1a758afac8785 Mon Sep 17 00:00:00 2001 From: Ken Barber Date: Mon, 14 Jan 2013 23:13:42 +0000 Subject: [PATCH] Fix examples for specifying usage of official postgresql repos This changes the wording and name of the example for using yum|apt.postgresql.org as the source of your packages. Signed-off-by: Ken Barber --- ...sql-org.pp => official-postgresql-repos.pp} | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) rename tests/{server-yum-postgresql-org.pp => official-postgresql-repos.pp} (60%) diff --git a/tests/server-yum-postgresql-org.pp b/tests/official-postgresql-repos.pp similarity index 60% rename from tests/server-yum-postgresql-org.pp rename to tests/official-postgresql-repos.pp index d349b1e..8665809 100644 --- a/tests/server-yum-postgresql-org.pp +++ b/tests/official-postgresql-repos.pp @@ -1,23 +1,19 @@ # This manifest shows an example of how you can use a newer version of -# postgres from yum.postgresql.org, rather than your system's -# default version. +# postgres from yum.postgresql.org or apt.postgresql.org, rather than your +# system's default version. # # Note that it is important that you use the '->', or a # before/require metaparameter to make sure that the `params` # class is evaluated before any of the other classes in the module. # -# Also note that this example includes automatic management of the yumrepo -# 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 'params' class to specify the postgres version +# 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 # number, though, in order for the other classes to be able to find the # correct paths to the postgres dirs. - - class { "postgresql": version => '9.2', manage_package_repo => true, - package_source => 'yum.postgresql.org', -} -> - +}-> class { "postgresql::server": }