Skip to content

Commit db93a91

Browse files
committed
Added test of the included postgresql configuration file
1 parent b16c1e0 commit db93a91

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/postgresql_pgconf_extras.pp

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
class { 'postgresql::server':
2+
config_hash => {
3+
'ip_mask_deny_postgres_user' => '0.0.0.0/32',
4+
'ip_mask_allow_all_users' => '0.0.0.0/0',
5+
'listen_addresses' => '*',
6+
'manage_redhat_firewall' => true,
7+
'postgres_password' => 'postgres',
8+
},
9+
}
10+
11+
include "postgresql::params"
12+
13+
$pg_conf_include_file = "${postgresql::params::confdir}/postgresql_puppet_extras.conf"
14+
15+
file { $pg_conf_include_file:
16+
content => 'max_connections = 123',
17+
notify => Service['postgresqld'],
18+
}
19+

0 commit comments

Comments
 (0)