29
29
* [ ` peadm::file_or_content ` ] ( #peadm--file_or_content )
30
30
* [ ` peadm::flatten_compact ` ] ( #peadm--flatten_compact )
31
31
* [ ` 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
32
33
* [ ` peadm::get_pe_conf ` ] ( #peadm--get_pe_conf )
33
34
* [ ` 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
34
35
* [ ` peadm::migration_opts_default ` ] ( #peadm--migration_opts_default )
@@ -109,7 +110,6 @@ Supported use cases:
109
110
* ` peadm::misc::divert_code_manager ` : This plan exists to account for a scenario where a PE XL
110
111
* ` peadm::modify_cert_extensions `
111
112
* ` peadm::subplans::component_install ` : Install a new PEADM component
112
- * ` peadm::subplans::configure ` : Configure first-time classification and DR setup
113
113
* ` peadm::subplans::db_populate ` : Destructively (re)populates a new or existing database with the contents or a known good source
114
114
* ` peadm::subplans::install ` : Perform initial installation of Puppet Enterprise Extra Large
115
115
* ` peadm::subplans::modify_certificate `
@@ -715,6 +715,24 @@ Data type: `Hash`
715
715
A hash of settings to set in the config file. Any keys that are set to
716
716
undef will not be included in the config file.
717
717
718
+ ### <a name =" peadm--get_node_group_environment " ></a >` peadm::get_node_group_environment `
719
+
720
+ Type: Puppet Language
721
+
722
+ check if a custom PE environment is set in pe.conf
723
+
724
+ #### ` peadm::get_node_group_environment(Peadm::SingleTargetSpec $primary) `
725
+
726
+ The peadm::get_node_group_environment function.
727
+
728
+ Returns: ` Any `
729
+
730
+ ##### ` primary `
731
+
732
+ Data type: ` Peadm::SingleTargetSpec `
733
+
734
+ the FQDN for the primary, here we will read the pe.conf from
735
+
718
736
### <a name =" peadm--get_pe_conf " ></a >` peadm::get_pe_conf `
719
737
720
738
Type: Puppet Language
@@ -1563,11 +1581,20 @@ The peadm::add_database class.
1563
1581
1564
1582
The following parameters are available in the ` peadm::add_database ` plan:
1565
1583
1584
+ * [ ` node_group_environment ` ] ( #-peadm--add_database--node_group_environment )
1566
1585
* [ ` targets ` ] ( #-peadm--add_database--targets )
1567
1586
* [ ` primary_host ` ] ( #-peadm--add_database--primary_host )
1568
1587
* [ ` mode ` ] ( #-peadm--add_database--mode )
1569
1588
* [ ` begin_at_step ` ] ( #-peadm--add_database--begin_at_step )
1570
1589
1590
+ ##### <a name =" -peadm--add_database--node_group_environment " ></a >` node_group_environment `
1591
+
1592
+ Data type: ` String[1] `
1593
+
1594
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1595
+
1596
+ Default value: ` peadm::get_node_group_environment($primary_host) `
1597
+
1571
1598
##### <a name =" -peadm--add_database--targets " ></a >` targets `
1572
1599
1573
1600
Data type: ` Peadm::SingleTargetSpec `
@@ -1692,6 +1719,7 @@ management using PEAdm.
1692
1719
1693
1720
The following parameters are available in the ` peadm::convert ` plan:
1694
1721
1722
+ * [ ` node_group_environment ` ] ( #-peadm--convert--node_group_environment )
1695
1723
* [ ` primary_host ` ] ( #-peadm--convert--primary_host )
1696
1724
* [ ` replica_host ` ] ( #-peadm--convert--replica_host )
1697
1725
* [ ` compiler_hosts ` ] ( #-peadm--convert--compiler_hosts )
@@ -1703,6 +1731,14 @@ The following parameters are available in the `peadm::convert` plan:
1703
1731
* [ ` dns_alt_names ` ] ( #-peadm--convert--dns_alt_names )
1704
1732
* [ ` begin_at_step ` ] ( #-peadm--convert--begin_at_step )
1705
1733
1734
+ ##### <a name =" -peadm--convert--node_group_environment " ></a >` node_group_environment `
1735
+
1736
+ Data type: ` String[1] `
1737
+
1738
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1739
+
1740
+ Default value: ` peadm::get_node_group_environment($primary_host) `
1741
+
1706
1742
##### <a name =" -peadm--convert--primary_host " ></a >` primary_host `
1707
1743
1708
1744
Data type: ` Peadm::SingleTargetSpec `
@@ -1805,6 +1841,7 @@ The following parameters are available in the `peadm::install` plan:
1805
1841
* [ ` final_agent_state ` ] ( #-peadm--install--final_agent_state )
1806
1842
* [ ` stagingdir ` ] ( #-peadm--install--stagingdir )
1807
1843
* [ ` uploaddir ` ] ( #-peadm--install--uploaddir )
1844
+ * [ ` node_group_environment ` ] ( #-peadm--install--node_group_environment )
1808
1845
* [ ` primary_host ` ] ( #-peadm--install--primary_host )
1809
1846
* [ ` replica_host ` ] ( #-peadm--install--replica_host )
1810
1847
* [ ` compiler_hosts ` ] ( #-peadm--install--compiler_hosts )
@@ -1904,6 +1941,14 @@ for offline usage.
1904
1941
1905
1942
Default value: ` undef `
1906
1943
1944
+ ##### <a name =" -peadm--install--node_group_environment " ></a >` node_group_environment `
1945
+
1946
+ Data type: ` String[1] `
1947
+
1948
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1949
+
1950
+ Default value: ` peadm::get_node_group_environment($primary_host) `
1951
+
1907
1952
##### <a name =" -peadm--install--primary_host " ></a >` primary_host `
1908
1953
1909
1954
Data type: ` Peadm::SingleTargetSpec `
@@ -2277,6 +2322,7 @@ The following parameters are available in the `peadm::upgrade` plan:
2277
2322
* [ ` r10k_known_hosts ` ] ( #-peadm--upgrade--r10k_known_hosts )
2278
2323
* [ ` stagingdir ` ] ( #-peadm--upgrade--stagingdir )
2279
2324
* [ ` uploaddir ` ] ( #-peadm--upgrade--uploaddir )
2325
+ * [ ` node_group_environment ` ] ( #-peadm--upgrade--node_group_environment )
2280
2326
* [ ` primary_host ` ] ( #-peadm--upgrade--primary_host )
2281
2327
* [ ` replica_host ` ] ( #-peadm--upgrade--replica_host )
2282
2328
* [ ` compiler_hosts ` ] ( #-peadm--upgrade--compiler_hosts )
@@ -2366,6 +2412,14 @@ for offline usage.
2366
2412
2367
2413
Default value: ` '/tmp' `
2368
2414
2415
+ ##### <a name =" -peadm--upgrade--node_group_environment " ></a >` node_group_environment `
2416
+
2417
+ Data type: ` String[1] `
2418
+
2419
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2420
+
2421
+ Default value: ` peadm::get_node_group_environment($primary_host) `
2422
+
2369
2423
##### <a name =" -peadm--upgrade--primary_host " ></a >` primary_host `
2370
2424
2371
2425
Data type: ` Peadm::SingleTargetSpec `
0 commit comments