|
25 | 25 | # @param user Overrides the default PostgreSQL super user and owner of PostgreSQL related files in the file system.
|
26 | 26 | # @param username username of user running the postgres instance
|
27 | 27 | # @param xlogdir PostgreSQL xlog/WAL directory
|
| 28 | +# @param port |
| 29 | +# Specifies the port for the PostgreSQL server to listen on. |
| 30 | +# Note: The same port number is used for all IP addresses the server listens on. Also, for Red Hat systems and early Debian systems, |
| 31 | +# changing the port causes the server to come to a full stop before being able to make the change. |
| 32 | +# @param psql_path Specifies the path to the psql command. |
28 | 33 | define postgresql::server::instance::initdb (
|
29 |
| - Optional[String[1]] $auth_host = $postgresql::server::auth_host, |
30 |
| - Optional[String[1]] $auth_local = $postgresql::server::auth_local, |
31 |
| - Optional[Boolean] $data_checksums = $postgresql::server::data_checksums, |
32 |
| - Stdlib::Absolutepath $datadir = $postgresql::server::datadir, |
33 |
| - Optional[String[1]] $encoding = $postgresql::server::encoding, |
34 |
| - String[1] $group = $postgresql::server::group, |
35 |
| - Stdlib::Absolutepath $initdb_path = $postgresql::server::initdb_path, |
36 |
| - Optional[String[1]] $lc_messages = $postgresql::server::lc_messages, |
37 |
| - Optional[String[1]] $locale = $postgresql::server::locale, |
38 |
| - Optional[Stdlib::Absolutepath] $logdir = $postgresql::server::logdir, |
39 |
| - Boolean $manage_datadir = $postgresql::server::manage_datadir, |
40 |
| - Boolean $manage_logdir = $postgresql::server::manage_logdir, |
41 |
| - Boolean $manage_xlogdir = $postgresql::server::manage_xlogdir, |
42 |
| - Stdlib::Absolutepath $module_workdir = $postgresql::server::module_workdir, |
43 |
| - Boolean $needs_initdb = $postgresql::server::needs_initdb, |
44 |
| - String[1] $user = $postgresql::server::user, |
45 |
| - Optional[String[1]] $username = $postgresql::server::username, |
46 |
| - Optional[Stdlib::Absolutepath] $xlogdir = $postgresql::server::xlogdir, |
| 34 | + Optional[String[1]] $auth_host = $postgresql::server::auth_host, |
| 35 | + Optional[String[1]] $auth_local = $postgresql::server::auth_local, |
| 36 | + Optional[Boolean] $data_checksums = $postgresql::server::data_checksums, |
| 37 | + Stdlib::Absolutepath $datadir = $postgresql::server::datadir, |
| 38 | + Optional[String[1]] $encoding = $postgresql::server::encoding, |
| 39 | + String[1] $group = $postgresql::server::group, |
| 40 | + Stdlib::Absolutepath $initdb_path = $postgresql::server::initdb_path, |
| 41 | + Optional[String[1]] $lc_messages = $postgresql::server::lc_messages, |
| 42 | + Optional[String[1]] $locale = $postgresql::server::locale, |
| 43 | + Optional[Stdlib::Absolutepath] $logdir = $postgresql::server::logdir, |
| 44 | + Boolean $manage_datadir = $postgresql::server::manage_datadir, |
| 45 | + Boolean $manage_logdir = $postgresql::server::manage_logdir, |
| 46 | + Boolean $manage_xlogdir = $postgresql::server::manage_xlogdir, |
| 47 | + Stdlib::Absolutepath $module_workdir = $postgresql::server::module_workdir, |
| 48 | + Boolean $needs_initdb = $postgresql::server::needs_initdb, |
| 49 | + String[1] $user = $postgresql::server::user, |
| 50 | + Optional[String[1]] $username = $postgresql::server::username, |
| 51 | + Optional[Stdlib::Absolutepath] $xlogdir = $postgresql::server::xlogdir, |
| 52 | + Stdlib::Port $port = $postgresql::server::port, |
| 53 | + Stdlib::Absolutepath $psql_path = $postgresql::server::psql_path, |
47 | 54 | ) {
|
48 | 55 | if $facts['os']['family'] == 'RedHat' and $facts['os']['selinux']['enabled'] == true {
|
49 | 56 | $seltype = 'postgresql_db_t'
|
|
190 | 197 | user => $user,
|
191 | 198 | group => $group,
|
192 | 199 | module_workdir => $module_workdir,
|
| 200 | + psql_path => $psql_path, |
| 201 | + port => $port, |
193 | 202 | }
|
194 | 203 | }
|
195 | 204 | }
|
0 commit comments