Skip to content

Commit fdac866

Browse files
committed
feat(convert_compiler_to_legacy): gather certificate extension information
- 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.
1 parent e67d0b3 commit fdac866

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

plans/convert_compiler_to_legacy.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,15 @@
1313
fail_plan($error)
1414
}
1515

16+
apply($primary_target) {
17+
class { 'peadm::setup::node_manager_yaml':
18+
primary_host => $primary_target.peadm::certname() ? {
19+
undef => $primary_target,
20+
default => $primary_target.peadm::certname(),
21+
},
22+
}
23+
}
24+
1625
$replica_host = getvar('cluster.params.replica_host')
1726
$primary_postgresql_host = getvar('cluster.params.primary_postgresql_host')
1827
$replica_postgresql_host = getvar('cluster.params.replica_postgresql_host')

0 commit comments

Comments
 (0)