Skip to content

Commit

Permalink
reorder parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonHoenscheid committed Jul 3, 2023
1 parent 28db91c commit 557f6a3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 32 deletions.
18 changes: 9 additions & 9 deletions manifests/server/initdb.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
postgresql::server::instance::initdb { 'main':
auth_host => $postgresql::server::auth_host,
auth_local => $postgresql::server::auth_local,
needs_initdb => $postgresql::server::needs_initdb,
initdb_path => $postgresql::server::initdb_path,
data_checksums => $postgresql::server::data_checksums,
datadir => $postgresql::server::datadir,
xlogdir => $postgresql::server::xlogdir,
encoding => $postgresql::server::encoding,
group => $postgresql::server::group,
initdb_path => $postgresql::server::initdb_path,
lc_messages => $postgresql::server::lc_messages,
locale => $postgresql::server::locale,
logdir => $postgresql::server::logdir,
manage_datadir => $postgresql::server::manage_datadir,
manage_logdir => $postgresql::server::manage_logdir,
manage_xlogdir => $postgresql::server::manage_xlogdir,
encoding => $postgresql::server::encoding,
lc_messages => $postgresql::server::lc_messages,
locale => $postgresql::server::locale,
data_checksums => $postgresql::server::data_checksums,
group => $postgresql::server::group,
module_workdir => $postgresql::server::module_workdir,
needs_initdb => $postgresql::server::needs_initdb,
user => $postgresql::server::user,
username => $postgresql::server::username,
module_workdir => $postgresql::server::module_workdir,
xlogdir => $postgresql::server::xlogdir,
}
}
46 changes: 23 additions & 23 deletions manifests/server/instance/initdb.pp
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
# lint:ignore:140chars
# @param needs_initdb Explicitly calls the initdb operation after server package is installed
# and before the PostgreSQL service is started.
# @param initdb_path Specifies the path to the initdb command.
# @param auth_host auth method used by default for host authorization
# @param auth_local auth method used by default for local authorization
# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
# @param datadir PostgreSQL data directory
# @param xlogdir PostgreSQL xlog directory
# @param logdir PostgreSQL log directory
# @param manage_datadir Set to false if you have file{ $datadir: } already defined
# @param manage_logdir Set to false if you have file{ $logdir: } already defined
# @param manage_xlogdir Set to false if you have file{ $xlogdir: } already defined
# @param encoding Sets the default encoding for all databases created with this module.
# On certain operating systems this is also used during the template1 initialization, so it becomes a default outside of the module as well.
# @param group Overrides the default postgres user group to be used for related files in the file system.
# @param initdb_path Specifies the path to the initdb command.
# @param lc_messages locale used for logging and system messages
# @param locale Sets the default database locale for all databases created with this module.
# On certain operating systems this is used during the template1 initialization as well, so it becomes a default outside of the module.
# @param data_checksums Boolean. Use checksums on data pages to help detect corruption by the I/O system that would otherwise be silent.
# 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.
# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system.
# @param group Overrides the default postgres user group to be used for related files in the file system.
# @param logdir PostgreSQL log directory
# @param manage_datadir Set to false if you have file{ $datadir: } already defined
# @param manage_logdir Set to false if you have file{ $logdir: } already defined
# @param manage_xlogdir Set to false if you have file{ $xlogdir: } already defined
# @param module_workdir Working directory for the PostgreSQL module
# @param auth_host auth method used by default for host authorization
# @param auth_local auth method used by default for local authorization
# @param lc_messages locale used for logging and system messages
# @param needs_initdb Explicitly calls the initdb operation after server package is installed
# and before the PostgreSQL service is started.
# @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system.
# @param username username of user running the postgres instance
# @param xlogdir PostgreSQL xlog/WAL directory
# lint:endignore:140chars
define postgresql::server::instance::initdb (
Optional[String[1]] $auth_host = $postgresql::server::auth_host,
Optional[String[1]] $auth_local = $postgresql::server::auth_local,
Boolean $needs_initdb = $postgresql::server::needs_initdb,
Variant[String[1], Stdlib::Absolutepath] $initdb_path = $postgresql::server::initdb_path,
Optional[Boolean] $data_checksums = $postgresql::server::data_checksums,
String[1] $datadir = $postgresql::server::datadir,
Optional[String[1]] $xlogdir = $postgresql::server::xlogdir,
Optional[String[1]] $encoding = $postgresql::server::encoding,
String[1] $group = $postgresql::server::group,
Variant[String[1], Stdlib::Absolutepath] $initdb_path = $postgresql::server::initdb_path,
Optional[String[1]] $lc_messages = $postgresql::server::lc_messages,
Optional[String[1]] $locale = $postgresql::server::locale,
Optional[String[1]] $logdir = $postgresql::server::logdir,
Boolean $manage_datadir = $postgresql::server::manage_datadir,
Boolean $manage_logdir = $postgresql::server::manage_logdir,
Boolean $manage_xlogdir = $postgresql::server::manage_xlogdir,
Optional[String[1]] $encoding = $postgresql::server::encoding,
Optional[String[1]] $lc_messages = $postgresql::server::lc_messages,
Optional[String[1]] $locale = $postgresql::server::locale,
Optional[Boolean] $data_checksums = $postgresql::server::data_checksums,
String[1] $group = $postgresql::server::group,
String[1] $module_workdir = $postgresql::server::module_workdir,
Boolean $needs_initdb = $postgresql::server::needs_initdb,
String[1] $user = $postgresql::server::user,
Optional[String[1]] $username = $postgresql::server::username,
String[1] $module_workdir = $postgresql::server::module_workdir,
Optional[String[1]] $xlogdir = $postgresql::server::xlogdir,
) {
if $facts['os']['family'] == 'RedHat' and $facts['os']['selinux']['enabled'] == true {
$seltype = 'postgresql_db_t'
Expand Down

0 comments on commit 557f6a3

Please sign in to comment.