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 )
@@ -715,6 +716,24 @@ Data type: `Hash`
715
716
A hash of settings to set in the config file. Any keys that are set to
716
717
undef will not be included in the config file.
717
718
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
+
718
737
### <a name =" peadm--get_pe_conf " ></a >` peadm::get_pe_conf `
719
738
720
739
Type: Puppet Language
@@ -1563,11 +1582,20 @@ The peadm::add_database class.
1563
1582
1564
1583
The following parameters are available in the ` peadm::add_database ` plan:
1565
1584
1585
+ * [ ` node_group_environment ` ] ( #-peadm--add_database--node_group_environment )
1566
1586
* [ ` targets ` ] ( #-peadm--add_database--targets )
1567
1587
* [ ` primary_host ` ] ( #-peadm--add_database--primary_host )
1568
1588
* [ ` mode ` ] ( #-peadm--add_database--mode )
1569
1589
* [ ` begin_at_step ` ] ( #-peadm--add_database--begin_at_step )
1570
1590
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
+
1571
1599
##### <a name =" -peadm--add_database--targets " ></a >` targets `
1572
1600
1573
1601
Data type: ` Peadm::SingleTargetSpec `
@@ -1692,6 +1720,7 @@ management using PEAdm.
1692
1720
1693
1721
The following parameters are available in the ` peadm::convert ` plan:
1694
1722
1723
+ * [ ` node_group_environment ` ] ( #-peadm--convert--node_group_environment )
1695
1724
* [ ` primary_host ` ] ( #-peadm--convert--primary_host )
1696
1725
* [ ` replica_host ` ] ( #-peadm--convert--replica_host )
1697
1726
* [ ` compiler_hosts ` ] ( #-peadm--convert--compiler_hosts )
@@ -1703,6 +1732,14 @@ The following parameters are available in the `peadm::convert` plan:
1703
1732
* [ ` dns_alt_names ` ] ( #-peadm--convert--dns_alt_names )
1704
1733
* [ ` begin_at_step ` ] ( #-peadm--convert--begin_at_step )
1705
1734
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
+
1706
1743
##### <a name =" -peadm--convert--primary_host " ></a >` primary_host `
1707
1744
1708
1745
Data type: ` Peadm::SingleTargetSpec `
@@ -1805,6 +1842,7 @@ The following parameters are available in the `peadm::install` plan:
1805
1842
* [ ` final_agent_state ` ] ( #-peadm--install--final_agent_state )
1806
1843
* [ ` stagingdir ` ] ( #-peadm--install--stagingdir )
1807
1844
* [ ` uploaddir ` ] ( #-peadm--install--uploaddir )
1845
+ * [ ` node_group_environment ` ] ( #-peadm--install--node_group_environment )
1808
1846
* [ ` primary_host ` ] ( #-peadm--install--primary_host )
1809
1847
* [ ` replica_host ` ] ( #-peadm--install--replica_host )
1810
1848
* [ ` compiler_hosts ` ] ( #-peadm--install--compiler_hosts )
@@ -1904,6 +1942,14 @@ for offline usage.
1904
1942
1905
1943
Default value: ` undef `
1906
1944
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
+
1907
1953
##### <a name =" -peadm--install--primary_host " ></a >` primary_host `
1908
1954
1909
1955
Data type: ` Peadm::SingleTargetSpec `
@@ -2277,6 +2323,7 @@ The following parameters are available in the `peadm::upgrade` plan:
2277
2323
* [ ` r10k_known_hosts ` ] ( #-peadm--upgrade--r10k_known_hosts )
2278
2324
* [ ` stagingdir ` ] ( #-peadm--upgrade--stagingdir )
2279
2325
* [ ` uploaddir ` ] ( #-peadm--upgrade--uploaddir )
2326
+ * [ ` node_group_environment ` ] ( #-peadm--upgrade--node_group_environment )
2280
2327
* [ ` primary_host ` ] ( #-peadm--upgrade--primary_host )
2281
2328
* [ ` replica_host ` ] ( #-peadm--upgrade--replica_host )
2282
2329
* [ ` compiler_hosts ` ] ( #-peadm--upgrade--compiler_hosts )
@@ -2366,6 +2413,14 @@ for offline usage.
2366
2413
2367
2414
Default value: ` '/tmp' `
2368
2415
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
+
2369
2424
##### <a name =" -peadm--upgrade--primary_host " ></a >` primary_host `
2370
2425
2371
2426
Data type: ` Peadm::SingleTargetSpec `
0 commit comments