|
221 | 221 | }
|
222 | 222 | )
|
223 | 223 | },
|
| 224 | + background('replica-csr.yaml') || { |
| 225 | + run_plan('peadm::util::insert_csr_extension_requests', $replica_target, |
| 226 | + extension_requests => { |
| 227 | + peadm::oid('peadm_role') => 'puppet/server', |
| 228 | + peadm::oid('peadm_availability_group') => 'B' |
| 229 | + } |
| 230 | + ) |
| 231 | + }, |
| 232 | + background('compiler-a-csr.yaml') || { |
| 233 | + run_plan('peadm::util::insert_csr_extension_requests', $compiler_a_targets, |
| 234 | + extension_requests => { |
| 235 | + peadm::oid('pp_auth_role') => 'pe_compiler', |
| 236 | + peadm::oid('peadm_availability_group') => 'A' |
| 237 | + } |
| 238 | + ) |
| 239 | + }, |
| 240 | + background('compiler-b-csr.yaml') || { |
| 241 | + run_plan('peadm::util::insert_csr_extension_requests', $compiler_b_targets, |
| 242 | + extension_requests => { |
| 243 | + peadm::oid('pp_auth_role') => 'pe_compiler', |
| 244 | + peadm::oid('peadm_availability_group') => 'B' |
| 245 | + } |
| 246 | + ) |
| 247 | + }, |
224 | 248 | background('primary-postgresql-csr.yaml') || {
|
225 | 249 | run_plan('peadm::util::insert_csr_extension_requests', $primary_postgresql_target,
|
226 | 250 | extension_requests => {
|
|
323 | 347 | "main:certname=${target.peadm::certname()}",
|
324 | 348 | ]
|
325 | 349 |
|
326 |
| - $role_and_group = |
327 |
| - if ($target in $compiler_a_targets) {[ |
328 |
| - "extension_requests:${peadm::oid('pp_auth_role')}=pe_compiler", |
329 |
| - "extension_requests:${peadm::oid('peadm_availability_group')}=A", |
330 |
| - ]} |
331 |
| - elsif ($target in $compiler_b_targets) {[ |
332 |
| - "extension_requests:${peadm::oid('pp_auth_role')}=pe_compiler", |
333 |
| - "extension_requests:${peadm::oid('peadm_availability_group')}=B", |
334 |
| - ]} |
335 |
| - elsif ($target in $replica_target) {[ |
336 |
| - "extension_requests:${peadm::oid('peadm_role')}=puppet/server", |
337 |
| - "extension_requests:${peadm::oid('peadm_availability_group')}=B", |
338 |
| - ]} |
339 |
| - |
340 | 350 | # Get an agent installed and cert signed
|
341 | 351 | run_task('peadm::agent_install', $target,
|
342 | 352 | server => $primary_target.peadm::certname(),
|
343 |
| - install_flags => $common_install_flags + $role_and_group, |
| 353 | + install_flags => $common_install_flags, |
344 | 354 | )
|
345 | 355 |
|
346 | 356 | # Ensure certificate requests have been submitted, then run Puppet
|
|
0 commit comments