File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 99 ' update-db-settings' ,
1010 ' cleanup-db' ,
1111 ' finalize' ]] $begin_at_step = undef ,
12+ Optional[Boolean] $is_migration = false ,
1213) {
1314 $primary_target = peadm::get_targets($primary_host , 1)
1415 $postgresql_target = peadm::get_targets($targets , 1)
2223
2324 $compilers = $peadm_config [' params' ][' compilers' ]
2425
25- # Bail if this is trying to be ran against Standard
26- if $compilers .empty {
26+ # Bail if this is trying to be ran against Standard. We need to allow this plan to progress for a migration
27+ # though as initially the installation will not have compilers added
28+ if $compilers .empty and !$is_migration {
2729 fail_plan(' Plan peadm::add_database is only applicable for L and XL deployments' )
2830 }
2931
Original file line number Diff line number Diff line change 88# The new server that will become the PE primary server
99# @param upgrade_version
1010# Optional version to upgrade to after migration is complete
11+ # @param replica_host
12+ # Optional new server that will become the PE replica server
13+ # @param primary_postgresql_host
14+ # Optional new server that will become the primary postgresql server
1115#
1216plan peadm::migrate (
1317 Peadm::SingleTargetSpec $old_primary_host ,
119123 if $primary_postgresql_host {
120124 run_plan(' peadm::add_database' , targets => $primary_postgresql_host ,
121125 primary_host => $new_primary_host ,
126+ is_migration => true ,
122127 )
123128 }
124129
You can’t perform that action at this time.
0 commit comments