File tree 2 files changed +13
-8
lines changed
2 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 12
12
# }'
13
13
#
14
14
class peadm::setup::node_manager (
15
+ # Common
15
16
String[1] $master_host,
16
- String[1] $puppetdb_database_host,
17
17
String[1] $compiler_pool_address,
18
18
19
+ # High Availability
19
20
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,
21
31
) {
22
32
23
33
# #################################################
129
139
},
130
140
variables => { ' peadm_replica' => true },
131
141
}
132
- }
133
142
134
- if $puppetdb_database_replica_host {
135
143
node_group { 'PE Master B' :
136
144
ensure => present ,
137
145
parent => ' PE Infrastructure' ,
Original file line number Diff line number Diff line change 25
25
$master_replica_target = peadm::get_targets($master_replica_host , 1)
26
26
$puppetdb_database_replica_target = peadm::get_targets($puppetdb_database_replica_host , 1)
27
27
$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)
32
29
33
30
# Ensure input valid for a supported architecture
34
31
$arch = peadm::validate_architecture(
You can’t perform that action at this time.
0 commit comments