|
38 | 38 | # @param pg_hba_conf_path Specifies the path to your pg_hba.conf file.
|
39 | 39 | # @param pg_ident_conf_path Specifies the path to your pg_ident.conf file.
|
40 | 40 | # @param postgresql_conf_path Specifies the path to your postgresql.conf file.
|
| 41 | +# @param postgresql_conf_mode Sets the mode of your postgresql.conf file. Only relevant if manage_postgresql_conf_perms is true. |
41 | 42 | # @param recovery_conf_path Specifies the path to your recovery.conf file.
|
42 | 43 | #
|
43 | 44 | # @param datadir PostgreSQL data directory
|
|
63 | 64 | # @param manage_pg_hba_conf Boolean. Whether to manage the pg_hba.conf.
|
64 | 65 | # @param manage_pg_ident_conf Boolean. Overwrites the pg_ident.conf file.
|
65 | 66 | # @param manage_recovery_conf Boolean. Specifies whether or not manage the recovery.conf.
|
| 67 | +# @param manage_postgresql_conf_perms |
| 68 | +# Whether to manage the postgresql conf file permissions. This means owner, |
| 69 | +# group and mode. Contents are not managed but should be managed through |
| 70 | +# postgresql::server::config_entry. |
66 | 71 | # @param module_workdir Working directory for the PostgreSQL module
|
67 | 72 | #
|
68 | 73 | # @param manage_datadir Set to false if you have file{ $datadir: } already defined
|
|
78 | 83 | # @param extra_systemd_config Adds extra config to systemd config file, can for instance be used to add extra openfiles. This can be a multi line string
|
79 | 84 | #
|
80 | 85 | class postgresql::server (
|
81 |
| - $postgres_password = undef, |
82 |
| - |
83 |
| - $package_name = $postgresql::params::server_package_name, |
84 |
| - $package_ensure = $postgresql::params::package_ensure, |
85 |
| - |
86 |
| - $plperl_package_name = $postgresql::params::plperl_package_name, |
87 |
| - $plpython_package_name = $postgresql::params::plpython_package_name, |
88 |
| - |
89 |
| - $service_ensure = $postgresql::params::service_ensure, |
90 |
| - $service_enable = $postgresql::params::service_enable, |
91 |
| - $service_manage = $postgresql::params::service_manage, |
92 |
| - $service_name = $postgresql::params::service_name, |
93 |
| - $service_restart_on_change = $postgresql::params::service_restart_on_change, |
94 |
| - $service_provider = $postgresql::params::service_provider, |
95 |
| - $service_reload = $postgresql::params::service_reload, |
96 |
| - $service_status = $postgresql::params::service_status, |
97 |
| - $default_database = $postgresql::params::default_database, |
98 |
| - $default_connect_settings = $postgresql::globals::default_connect_settings, |
99 |
| - $listen_addresses = $postgresql::params::listen_addresses, |
100 |
| - $port = $postgresql::params::port, |
101 |
| - $ip_mask_deny_postgres_user = $postgresql::params::ip_mask_deny_postgres_user, |
102 |
| - $ip_mask_allow_all_users = $postgresql::params::ip_mask_allow_all_users, |
103 |
| - Array[String[1]] $ipv4acls = $postgresql::params::ipv4acls, |
104 |
| - Array[String[1]] $ipv6acls = $postgresql::params::ipv6acls, |
105 |
| - |
106 |
| - $initdb_path = $postgresql::params::initdb_path, |
107 |
| - $createdb_path = $postgresql::params::createdb_path, |
108 |
| - $psql_path = $postgresql::params::psql_path, |
109 |
| - $pg_hba_conf_path = $postgresql::params::pg_hba_conf_path, |
110 |
| - $pg_ident_conf_path = $postgresql::params::pg_ident_conf_path, |
111 |
| - $postgresql_conf_path = $postgresql::params::postgresql_conf_path, |
112 |
| - $recovery_conf_path = $postgresql::params::recovery_conf_path, |
113 |
| - |
114 |
| - $datadir = $postgresql::params::datadir, |
115 |
| - $xlogdir = $postgresql::params::xlogdir, |
116 |
| - $logdir = $postgresql::params::logdir, |
117 |
| - |
118 |
| - $log_line_prefix = $postgresql::params::log_line_prefix, |
119 |
| - |
120 |
| - $pg_hba_conf_defaults = $postgresql::params::pg_hba_conf_defaults, |
121 |
| - |
122 |
| - $user = $postgresql::params::user, |
123 |
| - $group = $postgresql::params::group, |
124 |
| - |
125 |
| - $needs_initdb = $postgresql::params::needs_initdb, |
126 |
| - |
127 |
| - $encoding = $postgresql::params::encoding, |
128 |
| - $locale = $postgresql::params::locale, |
129 |
| - $data_checksums = $postgresql::params::data_checksums, |
130 |
| - $timezone = $postgresql::params::timezone, |
131 |
| - |
132 |
| - $manage_pg_hba_conf = $postgresql::params::manage_pg_hba_conf, |
133 |
| - $manage_pg_ident_conf = $postgresql::params::manage_pg_ident_conf, |
134 |
| - $manage_recovery_conf = $postgresql::params::manage_recovery_conf, |
135 |
| - Boolean $manage_selinux = $postgresql::params::manage_selinux, |
136 |
| - $module_workdir = $postgresql::params::module_workdir, |
137 |
| - |
138 |
| - $manage_datadir = $postgresql::params::manage_datadir, |
139 |
| - $manage_logdir = $postgresql::params::manage_logdir, |
140 |
| - $manage_xlogdir = $postgresql::params::manage_xlogdir, |
141 |
| - $password_encryption = $postgresql::params::password_encryption, |
142 |
| - $extra_systemd_config = $postgresql::params::extra_systemd_config, |
| 86 | + $postgres_password = undef, |
| 87 | + |
| 88 | + $package_name = $postgresql::params::server_package_name, |
| 89 | + $package_ensure = $postgresql::params::package_ensure, |
| 90 | + |
| 91 | + $plperl_package_name = $postgresql::params::plperl_package_name, |
| 92 | + $plpython_package_name = $postgresql::params::plpython_package_name, |
| 93 | + |
| 94 | + $service_ensure = $postgresql::params::service_ensure, |
| 95 | + $service_enable = $postgresql::params::service_enable, |
| 96 | + $service_manage = $postgresql::params::service_manage, |
| 97 | + $service_name = $postgresql::params::service_name, |
| 98 | + $service_restart_on_change = $postgresql::params::service_restart_on_change, |
| 99 | + $service_provider = $postgresql::params::service_provider, |
| 100 | + $service_reload = $postgresql::params::service_reload, |
| 101 | + $service_status = $postgresql::params::service_status, |
| 102 | + $default_database = $postgresql::params::default_database, |
| 103 | + $default_connect_settings = $postgresql::globals::default_connect_settings, |
| 104 | + $listen_addresses = $postgresql::params::listen_addresses, |
| 105 | + $port = $postgresql::params::port, |
| 106 | + $ip_mask_deny_postgres_user = $postgresql::params::ip_mask_deny_postgres_user, |
| 107 | + $ip_mask_allow_all_users = $postgresql::params::ip_mask_allow_all_users, |
| 108 | + Array[String[1]] $ipv4acls = $postgresql::params::ipv4acls, |
| 109 | + Array[String[1]] $ipv6acls = $postgresql::params::ipv6acls, |
| 110 | + |
| 111 | + $initdb_path = $postgresql::params::initdb_path, |
| 112 | + $createdb_path = $postgresql::params::createdb_path, |
| 113 | + $psql_path = $postgresql::params::psql_path, |
| 114 | + $pg_hba_conf_path = $postgresql::params::pg_hba_conf_path, |
| 115 | + $pg_ident_conf_path = $postgresql::params::pg_ident_conf_path, |
| 116 | + $postgresql_conf_path = $postgresql::params::postgresql_conf_path, |
| 117 | + Optional[Stdlib::Filemode] $postgresql_conf_mode = $postgresql::params::postgresql_conf_mode, |
| 118 | + $recovery_conf_path = $postgresql::params::recovery_conf_path, |
| 119 | + |
| 120 | + $datadir = $postgresql::params::datadir, |
| 121 | + $xlogdir = $postgresql::params::xlogdir, |
| 122 | + $logdir = $postgresql::params::logdir, |
| 123 | + |
| 124 | + $log_line_prefix = $postgresql::params::log_line_prefix, |
| 125 | + |
| 126 | + $pg_hba_conf_defaults = $postgresql::params::pg_hba_conf_defaults, |
| 127 | + |
| 128 | + $user = $postgresql::params::user, |
| 129 | + $group = $postgresql::params::group, |
| 130 | + |
| 131 | + $needs_initdb = $postgresql::params::needs_initdb, |
| 132 | + |
| 133 | + $encoding = $postgresql::params::encoding, |
| 134 | + $locale = $postgresql::params::locale, |
| 135 | + $data_checksums = $postgresql::params::data_checksums, |
| 136 | + $timezone = $postgresql::params::timezone, |
| 137 | + |
| 138 | + $manage_pg_hba_conf = $postgresql::params::manage_pg_hba_conf, |
| 139 | + $manage_pg_ident_conf = $postgresql::params::manage_pg_ident_conf, |
| 140 | + $manage_recovery_conf = $postgresql::params::manage_recovery_conf, |
| 141 | + Boolean $manage_postgresql_conf_perms = $postgresql::params::manage_postgresql_conf_perms, |
| 142 | + Boolean $manage_selinux = $postgresql::params::manage_selinux, |
| 143 | + $module_workdir = $postgresql::params::module_workdir, |
| 144 | + |
| 145 | + $manage_datadir = $postgresql::params::manage_datadir, |
| 146 | + $manage_logdir = $postgresql::params::manage_logdir, |
| 147 | + $manage_xlogdir = $postgresql::params::manage_xlogdir, |
| 148 | + $password_encryption = $postgresql::params::password_encryption, |
| 149 | + $extra_systemd_config = $postgresql::params::extra_systemd_config, |
143 | 150 |
|
144 | 151 | Hash[String, Hash] $roles = {},
|
145 | 152 | Hash[String, Any] $config_entries = {},
|
|
0 commit comments