30
30
* [ ` peadm::file_or_content ` ] ( #peadm--file_or_content )
31
31
* [ ` peadm::flatten_compact ` ] ( #peadm--flatten_compact )
32
32
* [ ` 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
33
34
* [ ` peadm::get_pe_conf ` ] ( #peadm--get_pe_conf )
34
35
* [ ` 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
35
36
* [ ` peadm::log_plan_parameters ` ] ( #peadm--log_plan_parameters )
105
106
* [ ` peadm::add_compiler ` ] ( #peadm--add_compiler ) : Proxy plan for peadm::add_compilers.
106
107
* [ ` peadm::add_compilers ` ] ( #peadm--add_compilers ) : Add new compilers to a PE architecture or replace an existing with new configuration.
107
108
* [ ` peadm::add_database ` ] ( #peadm--add_database )
108
- * [ ` peadm::add_replica ` ] ( #peadm--add_replica ) : Add or replace a replica host.
109
- Supported use cases:
110
- 1: Adding a replica to an existing primary.
111
- 2: The existing replica is broken, we have a fresh new VM we want to provision the replica to.
112
109
* [ ` peadm::backup ` ] ( #peadm--backup ) : Backup puppet primary configuration
113
110
* [ ` peadm::backup_ca ` ] ( #peadm--backup_ca )
114
111
* [ ` peadm::convert ` ] ( #peadm--convert ) : Convert an existing PE cluster to a PEAdm-managed cluster
@@ -740,6 +737,24 @@ Data type: `Hash`
740
737
A hash of settings to set in the config file. Any keys that are set to
741
738
undef will not be included in the config file.
742
739
740
+ ### <a name =" peadm--get_node_group_environment " ></a >` peadm::get_node_group_environment `
741
+
742
+ Type: Puppet Language
743
+
744
+ check if a custom PE environment is set in pe.conf
745
+
746
+ #### ` peadm::get_node_group_environment(Peadm::SingleTargetSpec $primary) `
747
+
748
+ The peadm::get_node_group_environment function.
749
+
750
+ Returns: ` String ` the desired environment for PE specific node groups
751
+
752
+ ##### ` primary `
753
+
754
+ Data type: ` Peadm::SingleTargetSpec `
755
+
756
+ the FQDN for the primary, here we will read the pe.conf from
757
+
743
758
### <a name =" peadm--get_pe_conf " ></a >` peadm::get_pe_conf `
744
759
745
760
Type: Puppet Language
@@ -1832,12 +1847,21 @@ The peadm::add_database class.
1832
1847
1833
1848
The following parameters are available in the ` peadm::add_database ` plan:
1834
1849
1850
+ * [ ` node_group_environment ` ] ( #-peadm--add_database--node_group_environment )
1835
1851
* [ ` targets ` ] ( #-peadm--add_database--targets )
1836
1852
* [ ` primary_host ` ] ( #-peadm--add_database--primary_host )
1837
1853
* [ ` mode ` ] ( #-peadm--add_database--mode )
1838
1854
* [ ` begin_at_step ` ] ( #-peadm--add_database--begin_at_step )
1839
1855
* [ ` is_migration ` ] ( #-peadm--add_database--is_migration )
1840
1856
1857
+ ##### <a name =" -peadm--add_database--node_group_environment " ></a >` node_group_environment `
1858
+
1859
+ Data type: ` String[1] `
1860
+
1861
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
1862
+
1863
+ Default value: ` peadm::get_node_group_environment($primary_host) `
1864
+
1841
1865
##### <a name =" -peadm--add_database--targets " ></a >` targets `
1842
1866
1843
1867
Data type: ` Peadm::SingleTargetSpec `
@@ -1884,51 +1908,6 @@ Data type: `Optional[Boolean]`
1884
1908
1885
1909
Default value: ` false `
1886
1910
1887
- ### <a name =" peadm--add_replica " ></a >` peadm::add_replica `
1888
-
1889
- Add or replace a replica host.
1890
- Supported use cases:
1891
- 1: Adding a replica to an existing primary.
1892
- 2: The existing replica is broken, we have a fresh new VM we want to provision the replica to.
1893
-
1894
- #### Parameters
1895
-
1896
- The following parameters are available in the ` peadm::add_replica ` plan:
1897
-
1898
- * [ ` primary_host ` ] ( #-peadm--add_replica--primary_host )
1899
- * [ ` replica_host ` ] ( #-peadm--add_replica--replica_host )
1900
- * [ ` replica_postgresql_host ` ] ( #-peadm--add_replica--replica_postgresql_host )
1901
- * [ ` token_file ` ] ( #-peadm--add_replica--token_file )
1902
-
1903
- ##### <a name =" -peadm--add_replica--primary_host " ></a >` primary_host `
1904
-
1905
- Data type: ` Peadm::SingleTargetSpec `
1906
-
1907
- - The hostname and certname of the primary Puppet server
1908
-
1909
- ##### <a name =" -peadm--add_replica--replica_host " ></a >` replica_host `
1910
-
1911
- Data type: ` Peadm::SingleTargetSpec `
1912
-
1913
- - The hostname and certname of the replica VM
1914
-
1915
- ##### <a name =" -peadm--add_replica--replica_postgresql_host " ></a >` replica_postgresql_host `
1916
-
1917
- Data type: ` Optional[Peadm::SingleTargetSpec] `
1918
-
1919
- - The hostname and certname of the host with the replica PE-PosgreSQL database.
1920
- Can be a separate host in an XL architecture, or undef in Standard or Large.
1921
-
1922
- Default value: ` undef `
1923
-
1924
- ##### <a name =" -peadm--add_replica--token_file " ></a >` token_file `
1925
-
1926
- Data type: ` Optional[String] `
1927
-
1928
- - (optional) the token file in a different location than the default.
1929
-
1930
- Default value: ` undef `
1931
-
1932
1911
### <a name =" peadm--backup " ></a >` peadm::backup `
1933
1912
1934
1913
Backup puppet primary configuration
@@ -2016,6 +1995,7 @@ management using PEAdm.
2016
1995
The following parameters are available in the ` peadm::convert ` plan:
2017
1996
2018
1997
* [ ` begin_at_step ` ] ( #-peadm--convert--begin_at_step )
1998
+ * [ ` node_group_environment ` ] ( #-peadm--convert--node_group_environment )
2019
1999
* [ ` primary_host ` ] ( #-peadm--convert--primary_host )
2020
2000
* [ ` replica_host ` ] ( #-peadm--convert--replica_host )
2021
2001
* [ ` compiler_hosts ` ] ( #-peadm--convert--compiler_hosts )
@@ -2035,6 +2015,14 @@ The step where the plan should start. If not set, it will start at the beginning
2035
2015
2036
2016
Default value: ` undef `
2037
2017
2018
+ ##### <a name =" -peadm--convert--node_group_environment " ></a >` node_group_environment `
2019
+
2020
+ Data type: ` String[1] `
2021
+
2022
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2023
+
2024
+ Default value: ` peadm::get_node_group_environment($primary_host) `
2025
+
2038
2026
##### <a name =" -peadm--convert--primary_host " ></a >` primary_host `
2039
2027
2040
2028
Data type: ` Peadm::SingleTargetSpec `
@@ -2129,6 +2117,7 @@ The following parameters are available in the `peadm::install` plan:
2129
2117
* [ ` final_agent_state ` ] ( #-peadm--install--final_agent_state )
2130
2118
* [ ` stagingdir ` ] ( #-peadm--install--stagingdir )
2131
2119
* [ ` uploaddir ` ] ( #-peadm--install--uploaddir )
2120
+ * [ ` node_group_environment ` ] ( #-peadm--install--node_group_environment )
2132
2121
* [ ` primary_host ` ] ( #-peadm--install--primary_host )
2133
2122
* [ ` replica_host ` ] ( #-peadm--install--replica_host )
2134
2123
* [ ` compiler_hosts ` ] ( #-peadm--install--compiler_hosts )
@@ -2229,6 +2218,14 @@ for offline usage.
2229
2218
2230
2219
Default value: ` undef `
2231
2220
2221
+ ##### <a name =" -peadm--install--node_group_environment " ></a >` node_group_environment `
2222
+
2223
+ Data type: ` String[1] `
2224
+
2225
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2226
+
2227
+ Default value: ` peadm::get_node_group_environment($primary_host) `
2228
+
2232
2229
##### <a name =" -peadm--install--primary_host " ></a >` primary_host `
2233
2230
2234
2231
Data type: ` Peadm::SingleTargetSpec `
@@ -2723,6 +2720,7 @@ The following parameters are available in the `peadm::upgrade` plan:
2723
2720
* [ ` stagingdir ` ] ( #-peadm--upgrade--stagingdir )
2724
2721
* [ ` uploaddir ` ] ( #-peadm--upgrade--uploaddir )
2725
2722
* [ ` begin_at_step ` ] ( #-peadm--upgrade--begin_at_step )
2723
+ * [ ` node_group_environment ` ] ( #-peadm--upgrade--node_group_environment )
2726
2724
* [ ` primary_host ` ] ( #-peadm--upgrade--primary_host )
2727
2725
* [ ` replica_host ` ] ( #-peadm--upgrade--replica_host )
2728
2726
* [ ` compiler_hosts ` ] ( #-peadm--upgrade--compiler_hosts )
@@ -2819,6 +2817,14 @@ The step where the plan should start. If not set, it will start at the beginning
2819
2817
2820
2818
Default value: ` undef `
2821
2819
2820
+ ##### <a name =" -peadm--upgrade--node_group_environment " ></a >` node_group_environment `
2821
+
2822
+ Data type: ` String[1] `
2823
+
2824
+ environment for the PEADM specific node groups, if not set it will be gathered from pe.conf or production
2825
+
2826
+ Default value: ` peadm::get_node_group_environment($primary_host) `
2827
+
2822
2828
##### <a name =" -peadm--upgrade--primary_host " ></a >` primary_host `
2823
2829
2824
2830
Data type: ` Peadm::SingleTargetSpec `
0 commit comments