From ca0bedb6ff3a73385a4c557c28062ca3dfae0f9c Mon Sep 17 00:00:00 2001 From: Josh Partlow Date: Thu, 12 Dec 2024 00:18:53 +0000 Subject: [PATCH] (PE-39352) Update REFERENCE.md for new functions. --- REFERENCE.md | 77 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 3 deletions(-) diff --git a/REFERENCE.md b/REFERENCE.md index 2951060f..88f6453a 100644 --- a/REFERENCE.md +++ b/REFERENCE.md @@ -16,6 +16,7 @@ ### Functions +* [`peadm::amend_recovery_defaults_by_pe_version`](#peadm--amend_recovery_defaults_by_pe_version) * [`peadm::assert_supported_architecture`](#peadm--assert_supported_architecture): Assert that the architecture given is a supported one * [`peadm::assert_supported_bolt_version`](#peadm--assert_supported_bolt_version): Assert that the Bolt executable running PEAdm is a supported version * [`peadm::assert_supported_pe_version`](#peadm--assert_supported_pe_version): Assert that the PE version given is supported by PEAdm @@ -39,6 +40,7 @@ * [`peadm::recovery_opts_all`](#peadm--recovery_opts_all) * [`peadm::recovery_opts_default`](#peadm--recovery_opts_default) * [`peadm::update_pe_conf`](#peadm--update_pe_conf): Update the pe.conf file on a target with the provided hash +* [`peadm::validated_pe_version_for_backup_restore`](#peadm--validated_pe_version_for_backup_restore): Verify that *pe_version* string is a valid SemVer. If not, warn, and return "0.0.0" as a permissive default. * [`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 ### Data types @@ -139,6 +141,36 @@ Supported use cases: ## Functions +### `peadm::amend_recovery_defaults_by_pe_version` + +Type: Puppet Language + +The peadm::amend_recovery_defaults_by_pe_version function. + +#### `peadm::amend_recovery_defaults_by_pe_version(Hash $base_opts, Peadm::Pe_version $pe_version, Boolean $opt_value)` + +The peadm::amend_recovery_defaults_by_pe_version function. + +Returns: `Any` + +##### `base_opts` + +Data type: `Hash` + + + +##### `pe_version` + +Data type: `Peadm::Pe_version` + + + +##### `opt_value` + +Data type: `Boolean` + + + ### `peadm::assert_supported_architecture` Type: Puppet Language @@ -787,12 +819,18 @@ Type: Puppet Language The peadm::migration_opts_default function. -#### `peadm::migration_opts_default()` +#### `peadm::migration_opts_default(Peadm::Pe_version $pe_version)` The peadm::migration_opts_default function. Returns: `Any` +##### `pe_version` + +Data type: `Peadm::Pe_version` + + + ### `peadm::node_manager_yaml_location` Type: Ruby 4.x API @@ -853,24 +891,36 @@ Type: Puppet Language The peadm::recovery_opts_all function. -#### `peadm::recovery_opts_all()` +#### `peadm::recovery_opts_all(Peadm::Pe_version $pe_version)` The peadm::recovery_opts_all function. Returns: `Any` +##### `pe_version` + +Data type: `Peadm::Pe_version` + + + ### `peadm::recovery_opts_default` Type: Puppet Language The peadm::recovery_opts_default function. -#### `peadm::recovery_opts_default()` +#### `peadm::recovery_opts_default(Peadm::Pe_version $pe_version)` The peadm::recovery_opts_default function. Returns: `Any` +##### `pe_version` + +Data type: `Peadm::Pe_version` + + + ### `peadm::update_pe_conf` Type: Puppet Language @@ -895,6 +945,26 @@ Data type: `Hash` The hash to update the pe.conf file with +### `peadm::validated_pe_version_for_backup_restore` + +Type: Puppet Language + +Verify that *pe_version* string is a valid SemVer. +If not, warn, and return "0.0.0" as a permissive default. + +#### `peadm::validated_pe_version_for_backup_restore(Optional[String] $pe_version)` + +Verify that *pe_version* string is a valid SemVer. +If not, warn, and return "0.0.0" as a permissive default. + +Returns: `Any` + +##### `pe_version` + +Data type: `Optional[String]` + + + ### `peadm::wait_until_service_ready` Type: Puppet Language @@ -1014,6 +1084,7 @@ Struct[{ 'orchestrator' => Optional[Boolean], 'puppetdb' => Optional[Boolean], 'rbac' => Optional[Boolean], + 'hac' => Optional[Boolean], }] ```