diff --git a/manifests/setup/node_manager.pp b/manifests/setup/node_manager.pp index ec253441..acb3aa29 100644 --- a/manifests/setup/node_manager.pp +++ b/manifests/setup/node_manager.pp @@ -20,10 +20,6 @@ Optional[String[1]] $puppetdb_database_replica_host = undef, ) { - if ([$master_replica_host, $puppetdb_database_replica_host].filter |$_| { $_ }.size == 1) { - fail('Must pass both master_replica_host and puppetdb_database_replica_host, or neither') - } - ################################################## # PE INFRASTRUCTURE GROUPS ################################################## @@ -120,7 +116,7 @@ # Create the replica and B groups if a replica master and database host are # supplied - if ($master_replica_host and $puppetdb_database_replica_host) { + if $master_replica_host { # We need to pre-create this group so that the master replica can be # identified as running PuppetDB, so that Puppet will create a pg_ident # authorization rule for it on the PostgreSQL nodes. @@ -133,7 +129,9 @@ }, variables => { 'peadm_replica' => true }, } + } + if $puppetdb_database_replica_host { node_group { 'PE Master B': ensure => present, parent => 'PE Infrastructure',