Skip to content

Commit 9c35c3d

Browse files
author
Wyatt Alt
committed
Merge pull request #135 from buzzdeee/manage_firewall
do not manage firewall for postgres, puppetlabs/postgres module from
2 parents ba30497 + 5ed5839 commit 9c35c3d

4 files changed

Lines changed: 0 additions & 9 deletions

File tree

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -460,10 +460,6 @@ The `puppetdb::database::postgresql` class manages a postgresql server for use b
460460

461461
The `listen_address` is a comma-separated list of hostnames or IP addresses on which the postgres server should listen for incoming connections. This defaults to `localhost`. This parameter maps directly to postgresql's `listen_addresses` config option; use a `*` to allow connections on any accessible address.
462462

463-
####`manage_firewall`
464-
465-
If set to `true` this will enable open the local firewall for PostgreSQL protocol access. Defaults to `false`.
466-
467463
####`database_name`
468464

469465
Sets the name of the database. Defaults to `puppetdb`.

manifests/database/postgresql.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Class for creating the PuppetDB postgresql database. See README.md for more
22
# information.
33
class puppetdb::database::postgresql(
4-
$manage_firewall = $puppetdb::params::open_postgres_port,
54
$listen_addresses = $puppetdb::params::database_host,
65
$database_name = $puppetdb::params::database_name,
76
$database_username = $puppetdb::params::database_username,
@@ -14,7 +13,6 @@
1413
class { '::postgresql::server':
1514
ip_mask_allow_all_users => '0.0.0.0/0',
1615
listen_addresses => $listen_addresses,
17-
manage_firewall => $manage_firewall,
1816
}
1917
}
2018

manifests/init.pp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
$read_conn_max_age = $puppetdb::params::read_conn_max_age,
4040
$read_conn_keep_alive = $puppetdb::params::read_conn_keep_alive,
4141
$read_conn_lifetime = $puppetdb::params::read_conn_lifetime,
42-
$open_postgres_port = $puppetdb::params::open_postgres_port,
4342
$confdir = $puppetdb::params::confdir,
4443
$java_args = {},
4544
$max_threads = $puppetdb::params::max_threads
@@ -124,7 +123,6 @@
124123

125124
if ($database == 'postgres') {
126125
class { 'puppetdb::database::postgresql':
127-
manage_firewall => $open_postgres_port,
128126
listen_addresses => $database_listen_address,
129127
database_name => $database_name,
130128
database_username => $database_username,

manifests/params.pp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
$disable_ssl = false
99
$open_ssl_listen_port = undef
1010
$postgres_listen_addresses = 'localhost'
11-
$open_postgres_port = undef
1211

1312
$database = 'postgres'
1413
$manage_dbserver = true

0 commit comments

Comments
 (0)