Skip to content

Commit e67eda8

Browse files
committed
Use node_manager's new purge_behavior parameter
This allows us to ensure the data we need, but preserve any user data that may have been set, on the node groups we manage.
1 parent 563eb2e commit e67eda8

File tree

4 files changed

+19
-66
lines changed

4 files changed

+19
-66
lines changed

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# PEADM module
22

3+
## 2.4.3
4+
### Summary
5+
6+
Bugfix release
7+
8+
### Bugfixes
9+
10+
- This release further remediates the bug fixed in 2.4.2, by ensuring that all peadm-managed node groups preserve existing data or class parameters not explicitly being managed. This is accomplished by requiring a new version of WhatsARanjit-node\_manager, v0.8.0.
11+
312
## 2.4.2
413
### Summary
514

lib/puppet/functions/peadm/merge_ng_config_data.rb

-61
This file was deleted.

manifests/setup/node_manager.pp

+8-3
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,13 @@
4444
Optional[String[1]] $puppetdb_database_replica_host = $master_replica_host,
4545
) {
4646

47+
# Preserve existing user data and classes values. We only need to make sure
48+
# the values we care about are present; we don't need to remove anything
49+
# else.
50+
Node_group {
51+
purge_behavior => none,
52+
}
53+
4754
##################################################
4855
# PE INFRASTRUCTURE GROUPS
4956
##################################################
@@ -62,9 +69,7 @@
6269
# out-of-box configuration of the group.
6370
$compiler_pool_address_data = $compiler_pool_address ? {
6471
undef => undef,
65-
default => Deferred('peadm::merge_ng_config_data', ['PE Master',
66-
{ 'pe_repo' => { 'compile_master_pool_address' => $compiler_pool_address } }
67-
]),
72+
default => { 'pe_repo' => { 'compile_master_pool_address' => $compiler_pool_address } },
6873
}
6974

7075
node_group { 'PE Master':

metadata.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "puppetlabs-peadm",
3-
"version": "2.4.2",
3+
"version": "2.4.3",
44
"author": "puppetlabs",
55
"summary": "Bolt plans used to deploy an at-scale Puppet Enterprise architecture",
66
"license": "Apache-2.0",
@@ -14,7 +14,7 @@
1414
},
1515
{
1616
"name": "WhatsARanjit/node_manager",
17-
"version_requirement": ">= 0.7.3 < 2.0.0"
17+
"version_requirement": ">= 0.8.0 < 2.0.0"
1818
},
1919
{
2020
"name": "puppetlabs/bolt_shim",

0 commit comments

Comments
 (0)