|
20 | 20 | # Config data to plane into pe.conf when generated on all hosts, this can be
|
21 | 21 | # used for tuning data etc.
|
22 | 22 | #
|
| 23 | +# @param pe_installer_source |
| 24 | +# The URL to download the Puppet Enterprise installer media from. If not |
| 25 | +# specified, PEAdm will attempt to download PE installation media from its |
| 26 | +# standard public source. When specified, PEAdm will download directly from the |
| 27 | +# URL given. |
| 28 | +# |
23 | 29 | plan peadm::subplans::install (
|
24 | 30 | # Standard
|
25 | 31 | Peadm::SingleTargetSpec $primary_host,
|
|
35 | 41 | # Common Configuration
|
36 | 42 | String $console_password,
|
37 | 43 | Peadm::Pe_version $version,
|
38 |
| - Array[String] $dns_alt_names = [ ], |
39 |
| - Hash $pe_conf_data = { }, |
| 44 | + Optional[String] $pe_installer_source = undef, |
| 45 | + Array[String] $dns_alt_names = [ ], |
| 46 | + Hash $pe_conf_data = { }, |
40 | 47 |
|
41 | 48 | # Code Manager
|
42 | 49 | Optional[String] $r10k_remote = undef,
|
|
191 | 198 | }
|
192 | 199 |
|
193 | 200 | $pe_tarball_name = "puppet-enterprise-${version}-${platform}.tar.gz"
|
194 |
| - $pe_tarball_source = "https://s3.amazonaws.com/pe-builds/released/${version}/${pe_tarball_name}" |
| 201 | + $pe_tarball_source = $pe_installer_source ? { |
| 202 | + undef => "https://s3.amazonaws.com/pe-builds/released/${version}/${pe_tarball_name}", |
| 203 | + default => $pe_installer_source, |
| 204 | + } |
195 | 205 | $upload_tarball_path = "/tmp/${pe_tarball_name}"
|
196 | 206 |
|
197 | 207 | if $download_mode == 'bolthost' {
|
|
0 commit comments