3030* [ ` peadm::file_or_content ` ] ( #peadm--file_or_content )
3131* [ ` peadm::flatten_compact ` ] ( #peadm--flatten_compact )
3232* [ ` peadm::generate_pe_conf ` ] ( #peadm--generate_pe_conf ) : Generate a pe.conf file in JSON format
33+ * [ ` peadm::get_node_group_environment ` ] ( #peadm--get_node_group_environment ) : check if a custom PE environment is set in pe.conf
3334* [ ` peadm::get_pe_conf ` ] ( #peadm--get_pe_conf )
3435* [ ` 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
3536* [ ` peadm::log_plan_parameters ` ] ( #peadm--log_plan_parameters )
@@ -740,6 +741,24 @@ Data type: `Hash`
740741A hash of settings to set in the config file. Any keys that are set to
741742undef will not be included in the config file.
742743
744+ ### <a name =" peadm--get_node_group_environment " ></a >` peadm::get_node_group_environment `
745+
746+ Type: Puppet Language
747+
748+ check if a custom PE environment is set in pe.conf
749+
750+ #### ` peadm::get_node_group_environment(Peadm::SingleTargetSpec $primary) `
751+
752+ The peadm::get_node_group_environment function.
753+
754+ Returns: ` String ` the desired environment for PE specific node groups
755+
756+ ##### ` primary `
757+
758+ Data type: ` Peadm::SingleTargetSpec `
759+
760+ the FQDN for the primary, here we will read the pe.conf from
761+
743762### <a name =" peadm--get_pe_conf " ></a >` peadm::get_pe_conf `
744763
745764Type: Puppet Language
@@ -1832,12 +1851,21 @@ The peadm::add_database class.
18321851
18331852The following parameters are available in the ` peadm::add_database ` plan:
18341853
1854+ * [ ` node_group_environment ` ] ( #-peadm--add_database--node_group_environment )
18351855* [ ` targets ` ] ( #-peadm--add_database--targets )
18361856* [ ` primary_host ` ] ( #-peadm--add_database--primary_host )
18371857* [ ` mode ` ] ( #-peadm--add_database--mode )
18381858* [ ` begin_at_step ` ] ( #-peadm--add_database--begin_at_step )
18391859* [ ` is_migration ` ] ( #-peadm--add_database--is_migration )
18401860
1861+ ##### <a name =" -peadm--add_database--node_group_environment " ></a >` node_group_environment `
1862+
1863+ Data type: ` String[1] `
1864+
1865+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1866+
1867+ Default value: ` peadm::get_node_group_environment($primary_host) `
1868+
18411869##### <a name =" -peadm--add_database--targets " ></a >` targets `
18421870
18431871Data type: ` Peadm::SingleTargetSpec `
@@ -1899,6 +1927,7 @@ The following parameters are available in the `peadm::add_replica` plan:
18991927* [ ` replica_host ` ] ( #-peadm--add_replica--replica_host )
19001928* [ ` replica_postgresql_host ` ] ( #-peadm--add_replica--replica_postgresql_host )
19011929* [ ` token_file ` ] ( #-peadm--add_replica--token_file )
1930+ * [ ` node_group_environment ` ] ( #-peadm--add_replica--node_group_environment )
19021931
19031932##### <a name =" -peadm--add_replica--primary_host " ></a >` primary_host `
19041933
@@ -1929,6 +1958,14 @@ Data type: `Optional[String]`
19291958
19301959Default value: ` undef `
19311960
1961+ ##### <a name =" -peadm--add_replica--node_group_environment " ></a >` node_group_environment `
1962+
1963+ Data type: ` String[1] `
1964+
1965+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1966+
1967+ Default value: ` peadm::get_node_group_environment($primary_host) `
1968+
19321969### <a name =" peadm--backup " ></a >` peadm::backup `
19331970
19341971Backup puppet primary configuration
@@ -2016,6 +2053,7 @@ management using PEAdm.
20162053The following parameters are available in the ` peadm::convert ` plan:
20172054
20182055* [ ` begin_at_step ` ] ( #-peadm--convert--begin_at_step )
2056+ * [ ` node_group_environment ` ] ( #-peadm--convert--node_group_environment )
20192057* [ ` primary_host ` ] ( #-peadm--convert--primary_host )
20202058* [ ` replica_host ` ] ( #-peadm--convert--replica_host )
20212059* [ ` compiler_hosts ` ] ( #-peadm--convert--compiler_hosts )
@@ -2035,6 +2073,14 @@ The step where the plan should start. If not set, it will start at the beginning
20352073
20362074Default value: ` undef `
20372075
2076+ ##### <a name =" -peadm--convert--node_group_environment " ></a >` node_group_environment `
2077+
2078+ Data type: ` String[1] `
2079+
2080+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2081+
2082+ Default value: ` peadm::get_node_group_environment($primary_host) `
2083+
20382084##### <a name =" -peadm--convert--primary_host " ></a >` primary_host `
20392085
20402086Data type: ` Peadm::SingleTargetSpec `
@@ -2129,6 +2175,7 @@ The following parameters are available in the `peadm::install` plan:
21292175* [ ` final_agent_state ` ] ( #-peadm--install--final_agent_state )
21302176* [ ` stagingdir ` ] ( #-peadm--install--stagingdir )
21312177* [ ` uploaddir ` ] ( #-peadm--install--uploaddir )
2178+ * [ ` node_group_environment ` ] ( #-peadm--install--node_group_environment )
21322179* [ ` primary_host ` ] ( #-peadm--install--primary_host )
21332180* [ ` replica_host ` ] ( #-peadm--install--replica_host )
21342181* [ ` compiler_hosts ` ] ( #-peadm--install--compiler_hosts )
@@ -2229,6 +2276,14 @@ for offline usage.
22292276
22302277Default value: ` undef `
22312278
2279+ ##### <a name =" -peadm--install--node_group_environment " ></a >` node_group_environment `
2280+
2281+ Data type: ` String[1] `
2282+
2283+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2284+
2285+ Default value: ` peadm::get_node_group_environment($primary_host) `
2286+
22322287##### <a name =" -peadm--install--primary_host " ></a >` primary_host `
22332288
22342289Data type: ` Peadm::SingleTargetSpec `
@@ -2723,6 +2778,7 @@ The following parameters are available in the `peadm::upgrade` plan:
27232778* [ ` stagingdir ` ] ( #-peadm--upgrade--stagingdir )
27242779* [ ` uploaddir ` ] ( #-peadm--upgrade--uploaddir )
27252780* [ ` begin_at_step ` ] ( #-peadm--upgrade--begin_at_step )
2781+ * [ ` node_group_environment ` ] ( #-peadm--upgrade--node_group_environment )
27262782* [ ` primary_host ` ] ( #-peadm--upgrade--primary_host )
27272783* [ ` replica_host ` ] ( #-peadm--upgrade--replica_host )
27282784* [ ` compiler_hosts ` ] ( #-peadm--upgrade--compiler_hosts )
@@ -2819,6 +2875,14 @@ The step where the plan should start. If not set, it will start at the beginning
28192875
28202876Default value: ` undef `
28212877
2878+ ##### <a name =" -peadm--upgrade--node_group_environment " ></a >` node_group_environment `
2879+
2880+ Data type: ` String[1] `
2881+
2882+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2883+
2884+ Default value: ` peadm::get_node_group_environment($primary_host) `
2885+
28222886##### <a name =" -peadm--upgrade--primary_host " ></a >` primary_host `
28232887
28242888Data type: ` Peadm::SingleTargetSpec `
0 commit comments