|
11 | 11 | # A load balancer address directing traffic to any of the "B" pool |
12 | 12 | # compilers. This is used for DR configuration in large and extra large |
13 | 13 | # architectures. |
14 | | -# @param pe_installer_source |
15 | | -# The URL to download the Puppet Enterprise installer media from. If not |
16 | | -# specified, PEAdm will attempt to download PE installation media from its |
17 | | -# standard public source. When specified, PEAdm will download directly from the |
18 | | -# URL given. |
19 | 14 | # @param final_agent_state |
20 | 15 | # Configures the state the puppet agent should be in on infrastructure nodes |
21 | 16 | # after PE is upgraded successfully. |
|
46 | 41 |
|
47 | 42 | # Common Configuration |
48 | 43 | Optional[Peadm::Pe_version] $version = undef, |
49 | | - Optional[Stdlib::HTTPSUrl] $pe_installer_source = undef, |
50 | 44 | Optional[String] $compiler_pool_address = undef, |
51 | 45 | Optional[String] $internal_compiler_a_pool_address = undef, |
52 | 46 | Optional[String] $internal_compiler_b_pool_address = undef, |
|
119 | 113 |
|
120 | 114 | $platform = run_task('peadm::precheck', $primary_target).first['platform'] |
121 | 115 |
|
122 | | - if $pe_installer_source { |
123 | | - $pe_tarball_name = $pe_installer_source.split('/')[-1] |
124 | | - $pe_tarball_source = $pe_installer_source |
125 | | - $_version = $pe_tarball_name.split('-')[2] |
126 | | - } else { |
127 | | - $_version = $version |
128 | | - $pe_tarball_name = "puppet-enterprise-${_version}-${platform}.tar.gz" |
129 | | - $pe_tarball_source = "https://s3.amazonaws.com/pe-builds/released/${_version}/${pe_tarball_name}" |
130 | | - } |
| 116 | + $pe_tarball_name = "puppet-enterprise-${version}-${platform}.tar.gz" |
| 117 | + $pe_tarball_source = "https://s3.amazonaws.com/pe-builds/released/${version}/${pe_tarball_name}" |
131 | 118 |
|
132 | 119 | $upload_tarball_path = "${uploaddir}/${pe_tarball_name}" |
133 | 120 |
|
134 | 121 | peadm::assert_supported_bolt_version() |
135 | 122 |
|
136 | | - peadm::assert_supported_pe_version($_version, $permit_unsafe_versions) |
| 123 | + peadm::assert_supported_pe_version($version, $permit_unsafe_versions) |
137 | 124 |
|
138 | 125 | # Gather certificate extension information from all systems |
139 | 126 | $cert_extensions_temp = run_task('peadm::cert_data', $all_targets).reduce({}) |$memo,$result| { |
|
402 | 389 | # doesn't deal well with the PuppetDB database being on a separate node. |
403 | 390 | # So, move it aside before running the upgrade. |
404 | 391 | $pdbapps = '/opt/puppetlabs/server/apps/puppetdb/cli/apps' |
405 | | - $workaround_delete_reports = $arch['disaster-recovery'] and $_version =~ SemVerRange('>= 2019.8') |
| 392 | + $workaround_delete_reports = $arch['disaster-recovery'] and $version =~ SemVerRange('>= 2019.8') |
406 | 393 | if $workaround_delete_reports { |
407 | 394 | # lint:ignore:strict_indent |
408 | 395 | run_command(@("COMMAND"/$), $replica_target) |
|
454 | 441 | ) |
455 | 442 | } |
456 | 443 |
|
457 | | - peadm::check_version_and_known_hosts($current_pe_version, $_version, $r10k_known_hosts) |
| 444 | + peadm::check_version_and_known_hosts($current_pe_version, $version, $r10k_known_hosts) |
458 | 445 |
|
459 | 446 | return("Upgrade of Puppet Enterprise ${arch['architecture']} completed.") |
460 | 447 | } |
0 commit comments