|
324 | 324 | ] |
325 | 325 |
|
326 | 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 | | - ]} |
| 327 | + if ($target in $compiler_a_targets) {{ |
| 328 | + peadm::oid('pp_auth_role') => 'pe_compiler', |
| 329 | + peadm::oid('peadm_availability_group') => 'A', |
| 330 | + }} |
| 331 | + elsif ($target in $compiler_b_targets) {{ |
| 332 | + peadm::oid('pp_auth_role') => 'pe_compiler', |
| 333 | + peadm::oid('peadm_availability_group') => 'B', |
| 334 | + }} |
| 335 | + elsif ($target in $replica_target) {{ |
| 336 | + peadm::oid('peadm_role') => 'puppet/server', |
| 337 | + peadm::oid('peadm_availability_group') => 'B', |
| 338 | + }} |
| 339 | + |
| 340 | + # Merge extension requests with csr_attributes.yaml or create it |
| 341 | + run_plan('peadm::util::insert_csr_extension_requests', $target, |
| 342 | + extension_requests => $role_and_group |
| 343 | + ) |
339 | 344 |
|
340 | 345 | # Get an agent installed and cert signed |
341 | 346 | run_task('peadm::agent_install', $target, |
342 | 347 | server => $primary_target.peadm::certname(), |
343 | | - install_flags => $common_install_flags + $role_and_group, |
| 348 | + install_flags => $common_install_flags, |
344 | 349 | ) |
345 | 350 |
|
346 | 351 | # Ensure certificate requests have been submitted, then run Puppet |
|
0 commit comments