Add globals/params layering for default_database
This makes the variable consistent with the manner in which most/all of the rest of the postgresql module currently works. Commit also adds the new param to the README file.
This commit is contained in:
parent
6afb4a0367
commit
cdf5b077fe
4 changed files with 9 additions and 1 deletions
|
@ -292,6 +292,9 @@ This setting can be used to override the default postgresql service provider. If
|
|||
####`service_status`
|
||||
This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.
|
||||
|
||||
####`default_database`
|
||||
This setting is used to specify the name of the default database to connect with. On most systems this will be "postgres".
|
||||
|
||||
####`inidb_path`
|
||||
Path to the `initdb` command.
|
||||
|
||||
|
@ -375,6 +378,9 @@ This setting can be used to override the default postgresql service provider. If
|
|||
####`service_status`
|
||||
This setting can be used to override the default status check command for your PostgreSQL service. If not specified, the module will use whatever service name is the default for your OS distro.
|
||||
|
||||
####`default_database`
|
||||
This setting is used to specify the name of the default database to connect with. On most systems this will be "postgres".
|
||||
|
||||
####`listen_addresses`
|
||||
This value defaults to `localhost`, meaning the postgres server will only accept connections from localhost. If you'd like to be able to connect to postgres from remote machines, you can override this setting. A value of `*` will tell postgres to accept connections from any remote machine. Alternately, you can specify a comma-separated list of hostnames or IP addresses. (For more info, have a look at the `postgresql.conf` file from your system's postgres package).
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ class postgresql::globals (
|
|||
$service_name = undef,
|
||||
$service_provider = undef,
|
||||
$service_status = undef,
|
||||
$default_database = undef,
|
||||
|
||||
$initdb_path = undef,
|
||||
$createdb_path = undef,
|
||||
|
|
|
@ -146,4 +146,5 @@ class postgresql::params inherits postgresql::globals {
|
|||
$pg_hba_conf_path = pick($pg_hba_conf_path, "${confdir}/pg_hba.conf")
|
||||
$pg_hba_conf_defaults = pick($pg_hba_conf_defaults, true)
|
||||
$postgresql_conf_path = pick($postgresql_conf_path, "${confdir}/postgresql.conf")
|
||||
$default_database = pick($default_database, 'postgres')
|
||||
}
|
||||
|
|
|
@ -14,7 +14,7 @@ class postgresql::server (
|
|||
$service_name = $postgresql::params::service_name,
|
||||
$service_provider = $postgresql::params::service_provider,
|
||||
$service_status = $postgresql::params::service_status,
|
||||
$default_database = undef,
|
||||
$default_database = $postgresql::params::default_database,
|
||||
|
||||
$listen_addresses = $postgresql::params::listen_addresses,
|
||||
$ip_mask_deny_postgres_user = $postgresql::params::ip_mask_deny_postgres_user,
|
||||
|
|
Loading…
Reference in a new issue