|
20 | 20 | * [`peadm::assert_supported_pe_version`](#peadm--assert_supported_pe_version): Assert that the PE version given is supported by PEAdm
|
21 | 21 | * [`peadm::bolt_version`](#peadm--bolt_version)
|
22 | 22 | * [`peadm::certname`](#peadm--certname): Return the certname of the given target-like input
|
| 23 | +* [`peadm::check_version_and_known_hosts`](#peadm--check_version_and_known_hosts): Checks PE verison and warns about setting r10k_known_hosts |
23 | 24 | * [`peadm::convert_hash`](#peadm--convert_hash): converts two arrays into hash
|
24 | 25 | * [`peadm::convert_status`](#peadm--convert_status): Transforms a value in a human readable status with or without colors
|
25 | 26 | * [`peadm::determine_status`](#peadm--determine_status): Produces a summarized hash of the given status data
|
|
28 | 29 | * [`peadm::file_or_content`](#peadm--file_or_content)
|
29 | 30 | * [`peadm::flatten_compact`](#peadm--flatten_compact)
|
30 | 31 | * [`peadm::generate_pe_conf`](#peadm--generate_pe_conf): Generate a pe.conf file in JSON format
|
| 32 | +* [`peadm::get_pe_conf`](#peadm--get_pe_conf) |
31 | 33 | * [`peadm::get_targets`](#peadm--get_targets): Accept undef or a SingleTargetSpec, and return an Array[Target, 1, 0]. This differs from get_target() in that: - It returns an Array[Target
|
32 | 34 | * [`peadm::node_manager_yaml_location`](#peadm--node_manager_yaml_location)
|
33 | 35 | * [`peadm::oid`](#peadm--oid)
|
34 | 36 | * [`peadm::plan_step`](#peadm--plan_step)
|
35 | 37 | * [`peadm::recovery_opts_default`](#peadm--recovery_opts_default)
|
| 38 | +* [`peadm::update_pe_conf`](#peadm--update_pe_conf): Update the pe.conf file on a target with the provided hash |
36 | 39 | * [`peadm::wait_until_service_ready`](#peadm--wait_until_service_ready): A convenience function to help remember port numbers for services and handle running the wait_until_service_ready task
|
37 | 40 |
|
38 | 41 | ### Data types
|
@@ -261,6 +264,56 @@ Variant[Target,
|
261 | 264 |
|
262 | 265 |
|
263 | 266 |
|
| 267 | +### <a name="peadm--check_version_and_known_hosts"></a>`peadm::check_version_and_known_hosts` |
| 268 | + |
| 269 | +Type: Puppet Language |
| 270 | + |
| 271 | +Checks if the current PE version is less than 2023.3.0 and the target version is greater than or equal to 2023.3.0 |
| 272 | +If both conditions are true and the r10k_known_hosts parameter is not defined, a warning message is displayed. |
| 273 | + |
| 274 | +#### `peadm::check_version_and_known_hosts(String $current_version, String $target_version, Optional[Peadm::Known_hosts] $r10k_known_hosts = undef)` |
| 275 | + |
| 276 | +Checks if the current PE version is less than 2023.3.0 and the target version is greater than or equal to 2023.3.0 |
| 277 | +If both conditions are true and the r10k_known_hosts parameter is not defined, a warning message is displayed. |
| 278 | + |
| 279 | +Returns: `Any` |
| 280 | + |
| 281 | +##### `$current_version` |
| 282 | + |
| 283 | +Data type: `String` |
| 284 | + |
| 285 | +The current PE version |
| 286 | + |
| 287 | +##### `$target_version` |
| 288 | + |
| 289 | +Data type: `String` |
| 290 | + |
| 291 | +The target PE version |
| 292 | + |
| 293 | +##### `$r10k_known_hosts` |
| 294 | + |
| 295 | +Data type: `Optional[Peadm::Known_hosts]` |
| 296 | + |
| 297 | +The r10k_known_hosts parameter |
| 298 | + |
| 299 | +##### `current_version` |
| 300 | + |
| 301 | +Data type: `String` |
| 302 | + |
| 303 | + |
| 304 | + |
| 305 | +##### `target_version` |
| 306 | + |
| 307 | +Data type: `String` |
| 308 | + |
| 309 | + |
| 310 | + |
| 311 | +##### `r10k_known_hosts` |
| 312 | + |
| 313 | +Data type: `Optional[Peadm::Known_hosts]` |
| 314 | + |
| 315 | + |
| 316 | + |
264 | 317 | ### <a name="peadm--convert_hash"></a>`peadm::convert_hash`
|
265 | 318 |
|
266 | 319 | Type: Puppet Language
|
@@ -653,6 +706,24 @@ Data type: `Hash`
|
653 | 706 | A hash of settings to set in the config file. Any keys that are set to
|
654 | 707 | undef will not be included in the config file.
|
655 | 708 |
|
| 709 | +### <a name="peadm--get_pe_conf"></a>`peadm::get_pe_conf` |
| 710 | + |
| 711 | +Type: Puppet Language |
| 712 | + |
| 713 | +The peadm::get_pe_conf function. |
| 714 | + |
| 715 | +#### `peadm::get_pe_conf(Target $target)` |
| 716 | + |
| 717 | +The peadm::get_pe_conf function. |
| 718 | + |
| 719 | +Returns: `Any` |
| 720 | + |
| 721 | +##### `target` |
| 722 | + |
| 723 | +Data type: `Target` |
| 724 | + |
| 725 | + |
| 726 | + |
656 | 727 | ### <a name="peadm--get_targets"></a>`peadm::get_targets`
|
657 | 728 |
|
658 | 729 | Type: Puppet Language
|
@@ -749,6 +820,30 @@ The peadm::recovery_opts_default function.
|
749 | 820 |
|
750 | 821 | Returns: `Any`
|
751 | 822 |
|
| 823 | +### <a name="peadm--update_pe_conf"></a>`peadm::update_pe_conf` |
| 824 | + |
| 825 | +Type: Puppet Language |
| 826 | + |
| 827 | +Update the pe.conf file on a target with the provided hash |
| 828 | + |
| 829 | +#### `peadm::update_pe_conf(Target $target, Hash $updated_pe_conf_hash)` |
| 830 | + |
| 831 | +The peadm::update_pe_conf function. |
| 832 | + |
| 833 | +Returns: `Any` |
| 834 | + |
| 835 | +##### `target` |
| 836 | + |
| 837 | +Data type: `Target` |
| 838 | + |
| 839 | +The target to update the pe.conf file on |
| 840 | + |
| 841 | +##### `updated_pe_conf_hash` |
| 842 | + |
| 843 | +Data type: `Hash` |
| 844 | + |
| 845 | +The hash to update the pe.conf file with |
| 846 | + |
752 | 847 | ### <a name="peadm--wait_until_service_ready"></a>`peadm::wait_until_service_ready`
|
753 | 848 |
|
754 | 849 | Type: Puppet Language
|
@@ -1932,6 +2027,7 @@ The following parameters are available in the `peadm::upgrade` plan:
|
1932 | 2027 | * [`internal_compiler_b_pool_address`](#-peadm--upgrade--internal_compiler_b_pool_address)
|
1933 | 2028 | * [`pe_installer_source`](#-peadm--upgrade--pe_installer_source)
|
1934 | 2029 | * [`final_agent_state`](#-peadm--upgrade--final_agent_state)
|
| 2030 | +* [`r10k_known_hosts`](#-peadm--upgrade--r10k_known_hosts) |
1935 | 2031 | * [`primary_host`](#-peadm--upgrade--primary_host)
|
1936 | 2032 | * [`replica_host`](#-peadm--upgrade--replica_host)
|
1937 | 2033 | * [`compiler_hosts`](#-peadm--upgrade--compiler_hosts)
|
@@ -1993,6 +2089,17 @@ after PE is upgraded successfully.
|
1993 | 2089 |
|
1994 | 2090 | Default value: `'running'`
|
1995 | 2091 |
|
| 2092 | +##### <a name="-peadm--upgrade--r10k_known_hosts"></a>`r10k_known_hosts` |
| 2093 | + |
| 2094 | +Data type: `Optional[Peadm::Known_hosts]` |
| 2095 | + |
| 2096 | +Puppet Enterprise 2023.3+ requires host key verification for the |
| 2097 | +r10k_remote host when using ssh. you must provide \$r10k_known_hosts |
| 2098 | +information in the form of an array of hashes with 'name', 'type' and 'key' |
| 2099 | +information for hostname, key-type and public key. |
| 2100 | + |
| 2101 | +Default value: `undef` |
| 2102 | + |
1996 | 2103 | ##### <a name="-peadm--upgrade--primary_host"></a>`primary_host`
|
1997 | 2104 |
|
1998 | 2105 | Data type: `Peadm::SingleTargetSpec`
|
|
0 commit comments