Conditionally manage puppetdb connection

This allows us to bring up the puppet3 master in an automated way,
then flip on puppetdb later. Most importantly this allows for a step
in the middle where an infra core applies the puppetmaster3 cert
and key from the original puppetmaster.

Change-Id: I77a815591649d55b8c17fb9431add0edd68ce0d2
This commit is contained in:
Spencer Krum
2014-08-27 16:32:46 -07:00
parent 999c6ee707
commit 1aca2b8b4d

View File

@@ -6,6 +6,7 @@ class openstack_project::puppetmaster (
$sysadmins = [],
$version = '2.7.',
$ca_server = undef,
$puppetdb = true,
) {
include ansible
include logrotate
@@ -105,11 +106,13 @@ class openstack_project::puppetmaster (
# Enable puppetdb
class { 'puppetdb::master::config':
puppetdb_server => 'puppetdb.openstack.org',
puppet_service_name => 'apache2',
puppetdb_soft_write_failure => true,
manage_storeconfigs => false,
if $puppetdb {
class { 'puppetdb::master::config':
puppetdb_server => 'puppetdb.openstack.org',
puppet_service_name => 'apache2',
puppetdb_soft_write_failure => true,
manage_storeconfigs => false,
}
}
# Playbooks