Skip to content

Commit 10ea45f

Browse files
committed
Merge pull request #107 from ebarrere/ebFix_puppetdb_conn_validator
Fix #106 and one other bug when disable_ssl = true
2 parents 2c92b60 + 05cf44b commit 10ea45f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

manifests/master/config.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Manage puppet configuration. See README.md for more details.
22
class puppetdb::master::config(
33
$puppetdb_server = $::fqdn,
4-
$puppetdb_port = 8081,
4+
$puppetdb_port = $puppetdb::disable_ssl ? { true => 8080, default => 8081, },
55
$puppetdb_soft_write_failure = false,
66
$manage_routes = true,
77
$manage_storeconfigs = true,
@@ -28,6 +28,7 @@
2828
puppetdb_conn_validator { 'puppetdb_conn':
2929
puppetdb_server => $manage_config ? { true => $puppetdb_server, default => undef },
3030
puppetdb_port => $manage_config ? { true => $puppetdb_port, default => undef },
31+
use_ssl => $puppetdb_port ? { 8080 => false, default => true },
3132
timeout => $puppetdb_startup_timeout,
3233
require => Package[$terminus_package],
3334
}

manifests/master/puppetdb_conf.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class puppetdb::master::puppetdb_conf (
44
$server = 'localhost',
55
$port = '8081',
6-
$soft_write_failure = false,
6+
$soft_write_failure = $puppetdb::disable_ssl ? { true => true, default => false, },
77
$puppet_confdir = $puppetdb::params::puppet_confdir,
88
) inherits puppetdb::params {
99

0 commit comments

Comments
 (0)