File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 23
23
peadm::assert_supported_pe_version($upgrade_version , $permit_unsafe_versions )
24
24
}
25
25
26
+ $new_hosts = peadm::flatten_compact([
27
+ $new_primary_host ,
28
+ $replica_host ? { undef => [], default => [$replica_host ] }
29
+ ].flatten)
26
30
$all_hosts = peadm::flatten_compact([
27
- $old_primary_host ,
28
- $new_primary_host ,
29
- $replica_host ? { undef => [], default => [$replica_host ] }
31
+ $old_primary_host ,
32
+ $new_hosts ,
30
33
].flatten)
31
34
run_command(' hostname' , $all_hosts ) # verify can connect to targets
32
35
121
124
})
122
125
}
123
126
127
+ # ensure puppet agent enabled on the hosts we migrated to
128
+ run_command(' puppet agent --enable' , $new_hosts )
129
+
124
130
if $upgrade_version and $upgrade_version != ' ' and !empty($upgrade_version ) {
125
131
run_plan(' peadm::upgrade' , {
126
132
primary_host => $new_primary_host ,
You can’t perform that action at this time.
0 commit comments