|
202 | 202 | } |
203 | 203 |
|
204 | 204 | node_group { 'PE Legacy Compiler': |
205 | | - parent => 'PE Master', |
206 | | - rule => ['and', |
207 | | - ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
| 205 | + parent => 'PE Master', |
| 206 | + rule => ['and', |
208 | 207 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
| 208 | + ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
209 | 209 | ], |
210 | | - classes => { |
211 | | - 'pe_repo' => {}, |
212 | | - 'puppet_enterprise::profile::master' => { 'code_manager_auto_configure' => true, 'replication_mode' => 'none' }, |
213 | | - }, |
214 | | - data => { |
215 | | - 'pe_repo' => { 'compile_master_pool_address' => $primary_host }, |
216 | | - }, |
217 | | - variables => { |
218 | | - 'pe_master' => true, |
| 210 | + classes => { |
| 211 | + 'puppet_enterprise::profile::master' => { |
| 212 | + # lint:ignore:single_quote_string_with_variables |
| 213 | + 'puppetdb_host' => ['${trusted[\'certname\']}'], |
| 214 | + # lint:endignore |
| 215 | + 'puppetdb_port' => [8081], |
| 216 | + }, |
219 | 217 | }, |
220 | 218 | } |
221 | 219 |
|
222 | 220 | # Configure the A pool for legacy compilers. There are up to two pools for DR, each |
223 | 221 | # having an affinity for one "availability zone" or the other. |
224 | 222 | node_group { 'PE Legacy Compiler Group A': |
225 | | - ensure => 'present', |
226 | | - parent => 'PE Legacy Compiler', |
227 | | - rule => ['and', |
| 223 | + ensure => 'present', |
| 224 | + parent => 'PE Legacy Compiler', |
| 225 | + rule => ['and', |
228 | 226 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
229 | 227 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'A'], |
230 | 228 | ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
231 | 229 | ], |
| 230 | + classes => { |
| 231 | + 'puppet_enterprise::profile::master' => { |
| 232 | + 'puppetdb_host' => [$internal_compiler_b_pool_address].filter |$_| { $_ }, |
| 233 | + 'puppetdb_port' => [8081], |
| 234 | + }, |
| 235 | + }, |
| 236 | + data => { |
| 237 | + # Workaround for GH-118 |
| 238 | + 'puppet_enterprise::profile::master::puppetdb' => { |
| 239 | + 'ha_enabled_replicas' => [], |
| 240 | + }, |
| 241 | + }, |
232 | 242 | } |
233 | 243 |
|
234 | 244 | # Configure the B pool for legacy compilers. There are up to two pools for DR, each |
235 | 245 | # having an affinity for one "availability zone" or the other. |
236 | 246 | node_group { 'PE Legacy Compiler Group B': |
237 | | - ensure => 'present', |
238 | | - parent => 'PE Legacy Compiler', |
239 | | - rule => ['and', |
| 247 | + ensure => 'present', |
| 248 | + parent => 'PE Legacy Compiler', |
| 249 | + rule => ['and', |
240 | 250 | ['=', ['trusted', 'extensions', 'pp_auth_role'], 'pe_compiler'], |
241 | 251 | ['=', ['trusted', 'extensions', peadm::oid('peadm_availability_group')], 'B'], |
242 | 252 | ['=', ['trusted', 'extensions', peadm::oid('peadm_legacy_compiler')], 'true'], |
243 | 253 | ], |
| 254 | + classes => { |
| 255 | + 'puppet_enterprise::profile::master' => { |
| 256 | + 'puppetdb_host' => [$internal_compiler_b_pool_address].filter |$_| { $_ }, |
| 257 | + 'puppetdb_port' => [8081], |
| 258 | + }, |
| 259 | + }, |
| 260 | + data => { |
| 261 | + # Workaround for GH-118 |
| 262 | + 'puppet_enterprise::profile::master::puppetdb' => { |
| 263 | + 'ha_enabled_replicas' => [], |
| 264 | + }, |
| 265 | + }, |
244 | 266 | } |
245 | 267 | } |
0 commit comments