|
11 | 11 | # over to the primary at /etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa
|
12 | 12 | # If the file does not exist the value will simply be supplied to the primary
|
13 | 13 | #
|
| 14 | +# @param r10k_known_hosts |
| 15 | +# Puppet Enterprise 2023.3+ requires host key verification for the |
| 16 | +# r10k_remote host when using ssh. When setting \$r10k_private_key, you must |
| 17 | +# also provide \$r10k_known_hosts information in the form of an array of |
| 18 | +# hashes with 'name', 'type' and 'key' information for hostname, key-type and |
| 19 | +# public key. Please refer to the Puppet Enterprise 2023.3+ Configure Code |
| 20 | +# Manager documentation for further details. |
| 21 | +# |
14 | 22 | # @param license_key_file
|
15 | 23 | # The license key to use with Puppet Enterprise. If this is a local file it
|
16 | 24 | # will be copied over to the MoM at /etc/puppetlabs/license.key
|
|
50 | 58 | Optional[String] $r10k_remote = undef,
|
51 | 59 | Optional[String] $r10k_private_key_file = undef,
|
52 | 60 | Optional[Peadm::Pem] $r10k_private_key_content = undef,
|
| 61 | + Optional[Peadm::Known_hosts] $r10k_known_hosts = undef, |
53 | 62 |
|
54 | 63 | # License key
|
55 | 64 | Optional[String] $license_key_file = undef,
|
|
125 | 134 | # either be undef or else the key content to write.
|
126 | 135 | $r10k_private_key = peadm::file_or_content('r10k_private_key', $r10k_private_key_file, $r10k_private_key_content)
|
127 | 136 |
|
128 |
| - # Same for license key |
| 137 | + # Process user input for license key (same process as for r10k private key above). |
129 | 138 | $license_key = peadm::file_or_content('license_key', $license_key_file, $license_key_content)
|
130 | 139 |
|
131 | 140 | $precheck_results = run_task('peadm::precheck', $all_targets)
|
|
170 | 179 | undef => undef,
|
171 | 180 | default => '/etc/puppetlabs/puppetserver/ssh/id-control_repo.rsa',
|
172 | 181 | },
|
| 182 | + 'puppet_enterprise::profile::master::r10k_known_hosts' => $r10k_known_hosts, |
173 | 183 | } + $puppetdb_database_temp_config + $pe_conf_data)
|
174 | 184 |
|
175 | 185 | $primary_postgresql_pe_conf = peadm::generate_pe_conf({
|
|
0 commit comments