|
1 | 1 | # lint:ignore:140chars
|
2 |
| -# @param needs_initdb Explicitly calls the initdb operation after server package is installed |
3 |
| -# and before the PostgreSQL service is started. |
4 |
| -# @param initdb_path Specifies the path to the initdb command. |
| 2 | +# @param auth_host auth method used by default for host authorization |
| 3 | +# @param auth_local auth method used by default for local authorization |
| 4 | +# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent. |
5 | 5 | # @param datadir PostgreSQL data directory
|
6 |
| -# @param xlogdir PostgreSQL xlog directory |
7 |
| -# @param logdir PostgreSQL log directory |
8 |
| -# @param manage_datadir Set to false if you have file{ $datadir: } already defined |
9 |
| -# @param manage_logdir Set to false if you have file{ $logdir: } already defined |
10 |
| -# @param manage_xlogdir Set to false if you have file{ $xlogdir: } already defined |
11 | 6 | # @param encoding Sets the default encoding for all databases created with this module.
|
12 | 7 | # On certain operating systems this is also used during the template1 initialization, so it becomes a default outside of the module as well.
|
| 8 | +# @param group Overrides the default postgres user group to be used for related files in the file system. |
| 9 | +# @param initdb_path Specifies the path to the initdb command. |
| 10 | +# @param lc_messages locale used for logging and system messages |
13 | 11 | # @param locale Sets the default database locale for all databases created with this module.
|
14 | 12 | # On certain operating systems this is used during the template1 initialization as well, so it becomes a default outside of the module.
|
15 |
| -# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent. |
16 | 13 | # Warning: This option is used during initialization by initdb, and cannot be changed later. If set, checksums are calculated for all objects, in all databases.
|
17 |
| -# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system. |
18 |
| -# @param group Overrides the default postgres user group to be used for related files in the file system. |
| 14 | +# @param logdir PostgreSQL log directory |
| 15 | +# @param manage_datadir Set to false if you have file{ $datadir: } already defined |
| 16 | +# @param manage_logdir Set to false if you have file{ $logdir: } already defined |
| 17 | +# @param manage_xlogdir Set to false if you have file{ $xlogdir: } already defined |
19 | 18 | # @param module_workdir Working directory for the PostgreSQL module
|
20 |
| -# @param auth_host auth method used by default for host authorization |
21 |
| -# @param auth_local auth method used by default for local authorization |
22 |
| -# @param lc_messages locale used for logging and system messages |
| 19 | +# @param needs_initdb Explicitly calls the initdb operation after server package is installed |
| 20 | +# and before the PostgreSQL service is started. |
| 21 | +# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system. |
23 | 22 | # @param username username of user running the postgres instance
|
| 23 | +# @param xlogdir PostgreSQL xlog/WAL directory |
24 | 24 | # lint:endignore:140chars
|
25 | 25 | define postgresql::server::instance::initdb (
|
26 | 26 | Optional[String[1]] $auth_host = $postgresql::server::auth_host,
|
27 | 27 | Optional[String[1]] $auth_local = $postgresql::server::auth_local,
|
28 |
| - Boolean $needs_initdb = $postgresql::server::needs_initdb, |
29 |
| - Variant[String[1], Stdlib::Absolutepath] $initdb_path = $postgresql::server::initdb_path, |
| 28 | + Optional[Boolean] $data_checksums = $postgresql::server::data_checksums, |
30 | 29 | String[1] $datadir = $postgresql::server::datadir,
|
31 |
| - Optional[String[1]] $xlogdir = $postgresql::server::xlogdir, |
| 30 | + Optional[String[1]] $encoding = $postgresql::server::encoding, |
| 31 | + String[1] $group = $postgresql::server::group, |
| 32 | + Variant[String[1], Stdlib::Absolutepath] $initdb_path = $postgresql::server::initdb_path, |
| 33 | + Optional[String[1]] $lc_messages = $postgresql::server::lc_messages, |
| 34 | + Optional[String[1]] $locale = $postgresql::server::locale, |
32 | 35 | Optional[String[1]] $logdir = $postgresql::server::logdir,
|
33 | 36 | Boolean $manage_datadir = $postgresql::server::manage_datadir,
|
34 | 37 | Boolean $manage_logdir = $postgresql::server::manage_logdir,
|
35 | 38 | Boolean $manage_xlogdir = $postgresql::server::manage_xlogdir,
|
36 |
| - Optional[String[1]] $encoding = $postgresql::server::encoding, |
37 |
| - Optional[String[1]] $lc_messages = $postgresql::server::lc_messages, |
38 |
| - Optional[String[1]] $locale = $postgresql::server::locale, |
39 |
| - Optional[Boolean] $data_checksums = $postgresql::server::data_checksums, |
40 |
| - String[1] $group = $postgresql::server::group, |
| 39 | + String[1] $module_workdir = $postgresql::server::module_workdir, |
| 40 | + Boolean $needs_initdb = $postgresql::server::needs_initdb, |
41 | 41 | String[1] $user = $postgresql::server::user,
|
42 | 42 | Optional[String[1]] $username = $postgresql::server::username,
|
43 |
| - String[1] $module_workdir = $postgresql::server::module_workdir, |
| 43 | + Optional[String[1]] $xlogdir = $postgresql::server::xlogdir, |
44 | 44 | ) {
|
45 | 45 | if $facts['os']['family'] == 'RedHat' and $facts['os']['selinux']['enabled'] == true {
|
46 | 46 | $seltype = 'postgresql_db_t'
|
|
0 commit comments