Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# [*ipv6acls*] - list of strings for access control for connection method, users, databases, IPv6
# addresses; see postgresql documentation about pg_hba.conf for information
# [*pg_hba_conf_path*] - path to pg_hba.conf file
# [*pg_hba_conf_template*] - template to use for pg_hba.conf; defaults to 'postgresql/pg_hba.conf.erb'
# [*postgresql_conf_path*] - path to postgresql.conf file
# [*manage_redhat_firewall*] - boolean indicating whether or not the module should open a port in the firewall on
# redhat-based systems; this parameter is likely to change in future versions. Possible
Expand All @@ -40,6 +41,7 @@
$ipv4acls = $postgresql::params::ipv4acls,
$ipv6acls = $postgresql::params::ipv6acls,
$pg_hba_conf_path = $postgresql::params::pg_hba_conf_path,
$pg_hba_conf_template = $postgresql::params::pg_hba_conf_template,
$postgresql_conf_path = $postgresql::params::postgresql_conf_path,
$manage_redhat_firewall = $postgresql::params::manage_redhat_firewall
) inherits postgresql::params {
Expand All @@ -55,6 +57,7 @@
ipv4acls => $ipv4acls,
ipv6acls => $ipv6acls,
pg_hba_conf_path => $pg_hba_conf_path,
pg_hba_conf_template => $pg_hba_conf_template,
postgresql_conf_path => $postgresql_conf_path,
manage_redhat_firewall => $manage_redhat_firewall,
}
Expand Down
4 changes: 3 additions & 1 deletion manifests/config/beforeservice.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
# [*ipv6acls*] - list of strings for access control for connection method, users, databases, IPv6
# addresses; see postgresql documentation about pg_hba.conf for information
# [*pg_hba_conf_path*] - path to pg_hba.conf file
# [*pg_hba_conf_template*] - template to use for pg_hba.conf; defaults to 'postgresql/pg_hba.conf.erb'
# [*postgresql_conf_path*] - path to postgresql.conf file
# [*manage_redhat_firewall*] - boolean indicating whether or not the module should open a port in the firewall on
# redhat-based systems; this parameter is likely to change in future versions. Possible
Expand All @@ -35,6 +36,7 @@
#
class postgresql::config::beforeservice(
$pg_hba_conf_path,
$pg_hba_conf_template = $postgresql::params::pg_hba_conf_template,
$postgresql_conf_path,
$ip_mask_deny_postgres_user = $postgresql::params::ip_mask_deny_postgres_user,
$ip_mask_allow_all_users = $postgresql::params::ip_mask_allow_all_users,
Expand All @@ -56,7 +58,7 @@
file { 'pg_hba.conf':
ensure => file,
path => $pg_hba_conf_path,
content => template('postgresql/pg_hba.conf.erb'),
content => template($pg_hba_conf_template),
notify => Exec['reload_postgresql'],
}

Expand Down
1 change: 1 addition & 0 deletions manifests/params.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
$ipv6acls = []
# TODO: figure out a way to make this not platform-specific
$manage_redhat_firewall = false
$pg_hba_conf_template = 'postgresql/pg_hba.conf.erb'


if ($manage_package_repo) {
Expand Down