Skip to content

Commit deb59f4

Browse files
authored
Merge pull request #211 from puppetlabs/reference.md
Add auto-generated REFERENCE.md documentation
2 parents 7939fbe + cc672d1 commit deb59f4

14 files changed

+1788
-11
lines changed

REFERENCE.md

Lines changed: 1747 additions & 0 deletions
Large diffs are not rendered by default.

functions/assert_supported_architecture.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @summary Assert that the architecture given is a supported one
12
function peadm::assert_supported_architecture (
23
TargetSpec $primary_host,
34
Variant[TargetSpec, Undef] $replica_host = undef,

functions/assert_supported_bolt_version.pp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# @summary Assert that the Bolt executable running PEAdm is a supported version
2+
#
13
# Checks if the current Bolt version matches the SemVerRange defined in $supported_bolt_version
24
# Fails the calling plan if false, does nothing if true.
35
# Accepts a parameter for the $supported_bolt_version for unit testing purposes

functions/assert_supported_pe_version.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @summary Assert that the PE version given is supported by PEAdm
12
# @return [Boolean] true if the version is supported, raise error otherwise
23
# @param [String] the version number to check
34
function peadm::assert_supported_pe_version (

functions/certname.pp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# @summary Return the certname of the given target-like input
2+
#
3+
# This function accepts a variety of data types which could represent single
4+
# targets, and returns the certname corresponding to the input.
5+
#
6+
# For Target objects, or arrays of a single Target object, a "certname" var can
7+
# be set, which determines that target's certname. Otherwise, the target's name
8+
# is its certname. For strings, the certname is equal to the string. Undef
9+
# input returns undef.
110
function peadm::certname(
211
Variant[Target,
312
String,

manifests/setup/convert_node_manager.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# Used during the peadm::convert plan
1+
# @api private
2+
# @summary Used during the peadm::convert plan
23
class peadm::setup::convert_node_manager {
34
require peadm::setup::node_manager
45

manifests/setup/convert_pre20197.pp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# @api private
12
# @summary Defines configuration needed for converting PE 2018
23
#
34
class peadm::setup::convert_pre20197 {

manifests/setup/node_manager.pp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# This profile is not intended to be continously enforced on PE primaries.
1+
# @api private
2+
# @summary Configures PEAdm's required node groups
3+
#
4+
# This class is not intended to be continously enforced on PE primaries.
25
# Rather, it describes state to enforce as a boostrap action, preparing the
36
# Puppet Enterprise console with a sane default environment configuration.
47
#

manifests/setup/node_manager_yaml.pp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1-
# Set up the node_manager.yaml file in the temporary Bolt confdir so that
2-
# node_group resources may be used during Bolt apply runs
1+
# @api private
2+
# @summary Set up the node_manager.yaml file in the temporary Bolt confdir
3+
#
4+
# This configuration permits node_group resources to be used during Bolt apply
5+
# runs. It is necessary to do it this way because node_manager requires a
6+
# configuration file, located in $confdir. But, when Bolt applies a catalog, it
7+
# does so using a unique, dynamic $confdir.
38
class peadm::setup::node_manager_yaml (
49
String $primary_host
510
) {

plans/convert.pp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# @summary Convert an existing PE cluster to a PEAdm-managed cluster
2+
#
3+
# This plan sets required certificate extensions on PE nodes, and configures
4+
# the required PE node groups to make an existing cluster compatible with
5+
# management using PEAdm.
16
plan peadm::convert (
27
# Standard
38
Peadm::SingleTargetSpec $primary_host,

0 commit comments

Comments
 (0)