Skip to content

Commit a2f939f

Browse files
reorder parameters
1 parent 930e911 commit a2f939f

File tree

2 files changed

+32
-32
lines changed

2 files changed

+32
-32
lines changed

manifests/server/initdb.pp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,21 @@
33
postgresql::server::instance::initdb { 'main':
44
auth_host => $postgresql::server::auth_host,
55
auth_local => $postgresql::server::auth_local,
6-
needs_initdb => $postgresql::server::needs_initdb,
7-
initdb_path => $postgresql::server::initdb_path,
6+
data_checksums => $postgresql::server::data_checksums,
87
datadir => $postgresql::server::datadir,
9-
xlogdir => $postgresql::server::xlogdir,
8+
encoding => $postgresql::server::encoding,
9+
group => $postgresql::server::group,
10+
initdb_path => $postgresql::server::initdb_path,
11+
lc_messages => $postgresql::server::lc_messages,
12+
locale => $postgresql::server::locale,
1013
logdir => $postgresql::server::logdir,
1114
manage_datadir => $postgresql::server::manage_datadir,
1215
manage_logdir => $postgresql::server::manage_logdir,
1316
manage_xlogdir => $postgresql::server::manage_xlogdir,
14-
encoding => $postgresql::server::encoding,
15-
lc_messages => $postgresql::server::lc_messages,
16-
locale => $postgresql::server::locale,
17-
data_checksums => $postgresql::server::data_checksums,
18-
group => $postgresql::server::group,
17+
module_workdir => $postgresql::server::module_workdir,
18+
needs_initdb => $postgresql::server::needs_initdb,
1919
user => $postgresql::server::user,
2020
username => $postgresql::server::username,
21-
module_workdir => $postgresql::server::module_workdir,
21+
xlogdir => $postgresql::server::xlogdir,
2222
}
2323
}

manifests/server/instance/initdb.pp

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
11
# 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.
55
# @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
116
# @param encoding Sets the default encoding for all databases created with this module.
127
# 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
1311
# @param locale Sets the default database locale for all databases created with this module.
1412
# 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.
1613
# 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
1918
# @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.
2322
# @param username username of user running the postgres instance
23+
# @param xlogdir PostgreSQL xlog/WAL directory
2424
# lint:endignore:140chars
2525
define postgresql::server::instance::initdb (
2626
Optional[String[1]] $auth_host = $postgresql::server::auth_host,
2727
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,
3029
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,
3235
Optional[String[1]] $logdir = $postgresql::server::logdir,
3336
Boolean $manage_datadir = $postgresql::server::manage_datadir,
3437
Boolean $manage_logdir = $postgresql::server::manage_logdir,
3538
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,
4141
String[1] $user = $postgresql::server::user,
4242
Optional[String[1]] $username = $postgresql::server::username,
43-
String[1] $module_workdir = $postgresql::server::module_workdir,
43+
Optional[String[1]] $xlogdir = $postgresql::server::xlogdir,
4444
) {
4545
if $facts['os']['family'] == 'RedHat' and $facts['os']['selinux']['enabled'] == true {
4646
$seltype = 'postgresql_db_t'

0 commit comments

Comments
 (0)