Skip to content

Commit 431141a

Browse files
committed
move declaration
1 parent eddfb9c commit 431141a

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

plans/install.pp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,6 @@
7979

8080
peadm::assert_supported_pe_version($version, $permit_unsafe_versions)
8181

82-
# Log parameters for debugging
83-
peadm::log_plan_parameters({
84-
'primary_host' => $primary_host,
85-
'replica_host' => $replica_host,
86-
'compiler_hosts' => $compiler_hosts,
87-
'legacy_compilers' => $legacy_compilers,
88-
'primary_postgresql_host' => $primary_postgresql_host,
89-
'replica_postgresql_host' => $replica_postgresql_host,
90-
'begin_at_step' => $begin_at_step,
91-
'version' => $version,
92-
})
93-
9482
$install_result = run_plan('peadm::subplans::install',
9583
# Standard
9684
primary_host => $primary_host,
@@ -154,6 +142,17 @@
154142
stagingdir => $stagingdir,
155143
final_agent_state => $final_agent_state,
156144
)
145+
# Log parameters for debugging
146+
peadm::log_plan_parameters({
147+
'primary_host' => $primary_host,
148+
'replica_host' => $replica_host,
149+
'compiler_hosts' => $compiler_hosts,
150+
'legacy_compilers' => $legacy_compilers,
151+
'primary_postgresql_host' => $primary_postgresql_host,
152+
'replica_postgresql_host' => $replica_postgresql_host,
153+
'begin_at_step' => $begin_at_step,
154+
'version' => $version,
155+
})
157156

158157
# Return a string banner reporting on what was done
159158
return([$install_result, $configure_result])

plans/upgrade.pp

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,6 @@
7373
$compiler_hosts,
7474
)
7575

76-
# Log parameters for debugging
77-
peadm::log_plan_parameters({
78-
'primary_host' => $primary_host,
79-
'replica_host' => $replica_host,
80-
'compiler_hosts' => $compiler_hosts,
81-
'primary_postgresql_host' => $primary_postgresql_host,
82-
'replica_postgresql_host' => $replica_postgresql_host,
83-
'begin_at_step' => $begin_at_step,
84-
'version' => $version,
85-
})
86-
8776
# Convert inputs into targets.
8877
$primary_target = peadm::get_targets($primary_host, 1)
8978
$replica_target = peadm::get_targets($replica_host, 1)
@@ -456,5 +445,16 @@
456445
457446
peadm::check_version_and_known_hosts($current_pe_version, $_version, $r10k_known_hosts)
458447
448+
# Log parameters for debugging
449+
peadm::log_plan_parameters({
450+
'primary_host' => $primary_host,
451+
'replica_host' => $replica_host,
452+
'compiler_hosts' => $compiler_hosts,
453+
'primary_postgresql_host' => $primary_postgresql_host,
454+
'replica_postgresql_host' => $replica_postgresql_host,
455+
'begin_at_step' => $begin_at_step,
456+
'version' => $version,
457+
})
458+
459459
return("Upgrade of Puppet Enterprise ${arch['architecture']} completed.")
460460
}

0 commit comments

Comments
 (0)