You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: CHANGELOG.md
+10
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,16 @@
2
2
3
3
All notable changes to this project will be documented in this file.
4
4
5
+
## Release 1.0.0
6
+
7
+
**Features**
8
+
9
+
- Added support for older Puppet enterprise versions which still use 'master' instead of 'primary server'. (must set the support_legacy_pe parameter to true to enable this support)
10
+
11
+
**Bugfixes**
12
+
13
+
- Added exception handling for reading existing csr_attributes.yaml. Corrupted yaml caused the plan to fail for that node. Csr_attributes data is now ignored if its invalid.
Copy file name to clipboardexpand all lines: README.md
+2
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,8 @@ Puppet Nodes
89
89
- Windows 2019
90
90
- RHEL 8
91
91
92
+
To support legacy version of Puppet Enterprise (Before changing naming standard to Primary server from master.) You must set the support_legacy_pe parameter to true.
93
+
92
94
## Development
93
95
94
96
If you find any issues with this module, please log them in the issues register of the GitHub project. [Issues][1]
Copy file name to clipboardexpand all lines: plans/update_trusted_facts.pp
+16-2
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
# @param preserve_existing_facts Whether to preserve existing facts from the nodes. If set to false all existing facts will be wiped and replaced with those set in the plan. Default: true
16
16
# @param ignore_infra_status_error Ignore errors from 'puppet infrastructure status' command. This is used to verify the primary server. Can be used to allow the plan the run when some PE components are unavaliable. Default: false
17
17
# @param noop Run the plan in noop. csr_attributes.yaml will still generated, however certificates will not be resigned. Default: false
18
+
# @param support_legacy_pe Attempt to support legacy PE. Default: false
18
19
# @param pp_role Set the pp_role trusted fact. Default: undef
19
20
# @param pp_uuid Set the pp_uuid trusted fact. Default: undef
20
21
# @param pp_environment Set the pp_environment trusted fact. Default: undef
@@ -47,6 +48,7 @@
47
48
Boolean $preserve_existing_facts = true,
48
49
Boolean $ignore_infra_status_error = false,
49
50
Boolean $noop = false,
51
+
Boolean $support_legacy_pe = false,
50
52
Optional[String] $pp_role = undef,
51
53
Optional[String] $pp_uuid = undef,
52
54
Optional[String] $pp_environment = undef,
@@ -115,6 +117,18 @@
115
117
if length("${confirm_pe_primary_server_results.ok_set}") <= 2 {
116
118
fail_plan("Primary server provided not the primary server for this Puppet Enterprise installation: ${pe_server_target.name} ")
117
119
}
120
+
# Check if we are attempting to support legacy PE.
0 commit comments