|
1 | | -# Class: postgresql |
2 | | -# |
3 | | -# This is a base class that can be used to modify catalog-wide settings relating |
4 | | -# to the various types in class contained in the postgresql module. |
5 | | -# |
6 | | -# If you don't declare this class in your catalog, sensible defaults will |
7 | | -# be used. However, if you choose to declare it, it needs to appear *before* |
8 | | -# any other types or classes from the postgresql module. |
9 | | -# |
10 | | -# For examples, see the files in the `tests` directory; in particular, |
11 | | -# `/server-yum-postgresql-org.pp`. |
12 | | -# |
13 | | -# Parameters: |
14 | | -# [*version*] - The postgresql version to install. If not specified, the |
15 | | -# module will use whatever version is the default for your |
16 | | -# OS distro. |
17 | | -# [*manage_package_repo*] - This determines whether or not the module should |
18 | | -# attempt to manage the postgres package repository for your |
19 | | -# distro. Defaults to `false`, but if set to `true`, it can |
20 | | -# be used to set up the official postgres yum/apt package |
21 | | -# repositories for you. |
22 | | -# [*package_source*] - This setting is only used if `manage_package_repo` is |
23 | | -# set to `true`. It determines which package repository should |
24 | | -# be used to install the postgres packages. Currently supported |
25 | | -# values include `yum.postgresql.org`. |
26 | | -# [*locale*] - This setting defines the default locale for initdb and createdb |
27 | | -# commands. This default to 'undef' which is effectively 'C'. |
28 | | -# [*charset*] - Sets the default charset to be used for initdb and createdb. |
29 | | -# Defaults to 'UTF8'. |
30 | | -# Actions: |
31 | | -# |
32 | | -# Requires: |
33 | | -# |
34 | | -# Sample Usage: |
| 1 | +# == Class: postgresql |
| 2 | +# |
| 3 | +# This is a base class that can be used to modify catalog-wide settings relating |
| 4 | +# to the various types in class contained in the postgresql module. |
| 5 | +# |
| 6 | +# If you don't declare this class in your catalog, sensible defaults will |
| 7 | +# be used. However, if you choose to declare it, it needs to appear *before* |
| 8 | +# any other types or classes from the postgresql module. |
| 9 | +# |
| 10 | +# For examples, see the files in the `tests` directory; in particular, |
| 11 | +# `/server-yum-postgresql-org.pp`. |
| 12 | +# |
| 13 | +# |
| 14 | +# [*version*] |
| 15 | +# The postgresql version to install. If not specified, the |
| 16 | +# module will use whatever version is the default for your |
| 17 | +# OS distro. |
| 18 | +# [*manage_package_repo*] |
| 19 | +# This determines whether or not the module should |
| 20 | +# attempt to manage the postgres package repository for your |
| 21 | +# distro. Defaults to `false`, but if set to `true`, it can |
| 22 | +# be used to set up the official postgres yum/apt package |
| 23 | +# repositories for you. |
| 24 | +# [*package_source*] |
| 25 | +# This setting is only used if `manage_package_repo` is |
| 26 | +# set to `true`. It determines which package repository should |
| 27 | +# be used to install the postgres packages. Currently supported |
| 28 | +# values include `yum.postgresql.org`. |
| 29 | +# |
| 30 | +# [*locale*] |
| 31 | +# This setting defines the default locale for initdb and createdb |
| 32 | +# commands. This default to 'undef' which is effectively 'C'. |
| 33 | +# [*charset*] |
| 34 | +# Sets the default charset to be used for initdb and createdb. |
| 35 | +# Defaults to 'UTF8'. |
| 36 | +# |
| 37 | +# === Examples: |
| 38 | +# |
| 39 | +# class { 'postgresql': |
| 40 | +# version => '9.2', |
| 41 | +# manage_package_repo => true, |
| 42 | +# } |
| 43 | +# |
35 | 44 | # |
36 | 45 | class postgresql ( |
37 | 46 | $version = $::postgres_default_version, |
|
41 | 50 | $charset = 'UTF8' |
42 | 51 | ) { |
43 | 52 | class { 'postgresql::params': |
| 53 | + |
44 | 54 | version => $version, |
45 | 55 | manage_package_repo => $manage_package_repo, |
46 | 56 | package_source => $package_source, |
|
0 commit comments