Skip to content

Commit

Permalink
feat(convert_compiler_to_legacy): gather certificate extension inform…
Browse files Browse the repository at this point in the history
…ation

- Added steps to apply `peadm::setup::node_manager_yaml` class on the primary target.
- Ensured `primary_host` is set correctly based on the primary target's certname.
- Improved the setup process by gathering certificate extension information.

This enhancement ensures that the correct certificate data is used, improving the accuracy of the conversion process.
  • Loading branch information
CoMfUcIoS committed Sep 17, 2024
1 parent e67d0b3 commit fdac866
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions plans/convert_compiler_to_legacy.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@
fail_plan($error)
}

apply($primary_target) {
class { 'peadm::setup::node_manager_yaml':
primary_host => $primary_target.peadm::certname() ? {
undef => $primary_target,
default => $primary_target.peadm::certname(),
},
}
}

$replica_host = getvar('cluster.params.replica_host')
$primary_postgresql_host = getvar('cluster.params.primary_postgresql_host')
$replica_postgresql_host = getvar('cluster.params.replica_postgresql_host')
Expand Down

0 comments on commit fdac866

Please sign in to comment.