2929* [ ` peadm::file_or_content ` ] ( #peadm--file_or_content )
3030* [ ` peadm::flatten_compact ` ] ( #peadm--flatten_compact )
3131* [ ` peadm::generate_pe_conf ` ] ( #peadm--generate_pe_conf ) : Generate a pe.conf file in JSON format
32+ * [ ` peadm::get_node_group_environment ` ] ( #peadm--get_node_group_environment ) : check if a custom PE environment is set in pe.conf
3233* [ ` peadm::get_pe_conf ` ] ( #peadm--get_pe_conf )
3334* [ ` 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
3435* [ ` peadm::migration_opts_default ` ] ( #peadm--migration_opts_default )
@@ -715,6 +716,24 @@ Data type: `Hash`
715716A hash of settings to set in the config file. Any keys that are set to
716717undef will not be included in the config file.
717718
719+ ### <a name =" peadm--get_node_group_environment " ></a >` peadm::get_node_group_environment `
720+
721+ Type: Puppet Language
722+
723+ check if a custom PE environment is set in pe.conf
724+
725+ #### ` peadm::get_node_group_environment(Peadm::SingleTargetSpec $primary) `
726+
727+ The peadm::get_node_group_environment function.
728+
729+ Returns: ` String ` the desired environment for PE specific node groups
730+
731+ ##### ` primary `
732+
733+ Data type: ` Peadm::SingleTargetSpec `
734+
735+ the FQDN for the primary, here we will read the pe.conf from
736+
718737### <a name =" peadm--get_pe_conf " ></a >` peadm::get_pe_conf `
719738
720739Type: Puppet Language
@@ -1563,11 +1582,20 @@ The peadm::add_database class.
15631582
15641583The following parameters are available in the ` peadm::add_database ` plan:
15651584
1585+ * [ ` node_group_environment ` ] ( #-peadm--add_database--node_group_environment )
15661586* [ ` targets ` ] ( #-peadm--add_database--targets )
15671587* [ ` primary_host ` ] ( #-peadm--add_database--primary_host )
15681588* [ ` mode ` ] ( #-peadm--add_database--mode )
15691589* [ ` begin_at_step ` ] ( #-peadm--add_database--begin_at_step )
15701590
1591+ ##### <a name =" -peadm--add_database--node_group_environment " ></a >` node_group_environment `
1592+
1593+ Data type: ` String[1] `
1594+
1595+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1596+
1597+ Default value: ` peadm::get_node_group_environment($primary_host) `
1598+
15711599##### <a name =" -peadm--add_database--targets " ></a >` targets `
15721600
15731601Data type: ` Peadm::SingleTargetSpec `
@@ -1692,6 +1720,7 @@ management using PEAdm.
16921720
16931721The following parameters are available in the ` peadm::convert ` plan:
16941722
1723+ * [ ` node_group_environment ` ] ( #-peadm--convert--node_group_environment )
16951724* [ ` primary_host ` ] ( #-peadm--convert--primary_host )
16961725* [ ` replica_host ` ] ( #-peadm--convert--replica_host )
16971726* [ ` compiler_hosts ` ] ( #-peadm--convert--compiler_hosts )
@@ -1703,6 +1732,14 @@ The following parameters are available in the `peadm::convert` plan:
17031732* [ ` dns_alt_names ` ] ( #-peadm--convert--dns_alt_names )
17041733* [ ` begin_at_step ` ] ( #-peadm--convert--begin_at_step )
17051734
1735+ ##### <a name =" -peadm--convert--node_group_environment " ></a >` node_group_environment `
1736+
1737+ Data type: ` String[1] `
1738+
1739+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1740+
1741+ Default value: ` peadm::get_node_group_environment($primary_host) `
1742+
17061743##### <a name =" -peadm--convert--primary_host " ></a >` primary_host `
17071744
17081745Data type: ` Peadm::SingleTargetSpec `
@@ -1805,6 +1842,7 @@ The following parameters are available in the `peadm::install` plan:
18051842* [ ` final_agent_state ` ] ( #-peadm--install--final_agent_state )
18061843* [ ` stagingdir ` ] ( #-peadm--install--stagingdir )
18071844* [ ` uploaddir ` ] ( #-peadm--install--uploaddir )
1845+ * [ ` node_group_environment ` ] ( #-peadm--install--node_group_environment )
18081846* [ ` primary_host ` ] ( #-peadm--install--primary_host )
18091847* [ ` replica_host ` ] ( #-peadm--install--replica_host )
18101848* [ ` compiler_hosts ` ] ( #-peadm--install--compiler_hosts )
@@ -1904,6 +1942,14 @@ for offline usage.
19041942
19051943Default value: ` undef `
19061944
1945+ ##### <a name =" -peadm--install--node_group_environment " ></a >` node_group_environment `
1946+
1947+ Data type: ` String[1] `
1948+
1949+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1950+
1951+ Default value: ` peadm::get_node_group_environment($primary_host) `
1952+
19071953##### <a name =" -peadm--install--primary_host " ></a >` primary_host `
19081954
19091955Data type: ` Peadm::SingleTargetSpec `
@@ -2277,6 +2323,7 @@ The following parameters are available in the `peadm::upgrade` plan:
22772323* [ ` r10k_known_hosts ` ] ( #-peadm--upgrade--r10k_known_hosts )
22782324* [ ` stagingdir ` ] ( #-peadm--upgrade--stagingdir )
22792325* [ ` uploaddir ` ] ( #-peadm--upgrade--uploaddir )
2326+ * [ ` node_group_environment ` ] ( #-peadm--upgrade--node_group_environment )
22802327* [ ` primary_host ` ] ( #-peadm--upgrade--primary_host )
22812328* [ ` replica_host ` ] ( #-peadm--upgrade--replica_host )
22822329* [ ` compiler_hosts ` ] ( #-peadm--upgrade--compiler_hosts )
@@ -2366,6 +2413,14 @@ for offline usage.
23662413
23672414Default value: ` '/tmp' `
23682415
2416+ ##### <a name =" -peadm--upgrade--node_group_environment " ></a >` node_group_environment `
2417+
2418+ Data type: ` String[1] `
2419+
2420+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2421+
2422+ Default value: ` peadm::get_node_group_environment($primary_host) `
2423+
23692424##### <a name =" -peadm--upgrade--primary_host " ></a >` primary_host `
23702425
23712426Data type: ` Peadm::SingleTargetSpec `
0 commit comments