Skip to content

Commit eea87f4

Browse files
committed
add check for primary_postgresql_host and run add_database if it exists
1 parent 660c8b0 commit eea87f4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plans/migrate.pp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@
114114
out::message('No nodes to purge from old configuration')
115115
}
116116

117+
if $primary_postgresql_host {
118+
run_plan('peadm::add_database', targets => $primary_postgresql_host,
119+
primary_host => $new_primary_host,
120+
)
121+
}
122+
117123
if $replica_host {
118124
run_plan('peadm::add_replica', {
119125
primary_host => $new_primary_host,

0 commit comments

Comments
 (0)