File tree Expand file tree Collapse file tree 2 files changed +13
-8
lines changed
Expand file tree Collapse file tree 2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 1212# }'
1313#
1414class peadm::setup::node_manager (
15+ # Common
1516 String[1] $master_host,
16- String[1] $puppetdb_database_host,
1717 String[1] $compiler_pool_address,
1818
19+ # High Availability
1920 Optional[String[1]] $master_replica_host = undef ,
20- Optional[String[1]] $puppetdb_database_replica_host = undef ,
21+
22+ # For the next two parameters, the default values are appropriate when
23+ # deploying Standard or Large architectures. These values only need to be
24+ # specified differently when deploying an Extra Large architecture.
25+
26+ # Specify when using Extra Large
27+ String[1] $puppetdb_database_host = $master_host,
28+
29+ # Specify when using Extra Large AND High Availability
30+ Optional[String[1]] $puppetdb_database_replica_host = $master_replica_host,
2131) {
2232
2333 # #################################################
129139 },
130140 variables => { ' peadm_replica' => true },
131141 }
132- }
133142
134- if $puppetdb_database_replica_host {
135143 node_group { 'PE Master B' :
136144 ensure => present ,
137145 parent => ' PE Infrastructure' ,
Original file line number Diff line number Diff line change 2525 $master_replica_target = peadm::get_targets($master_replica_host , 1)
2626 $puppetdb_database_replica_target = peadm::get_targets($puppetdb_database_replica_host , 1)
2727 $compiler_targets = peadm::get_targets($compiler_hosts )
28- $puppetdb_database_target = $puppetdb_database_host ? {
29- undef => $master_target ,
30- default => peadm::get_targets($puppetdb_database_host , 1)
31- }
28+ $puppetdb_database_target = peadm::get_targets($puppetdb_database_host , 1)
3229
3330 # Ensure input valid for a supported architecture
3431 $arch = peadm::validate_architecture(
You can’t perform that action at this time.
0 commit comments