Skip to content

Commit d0c72ab

Browse files
(PE-38155) Updating node_manager to use Latest Puppetlabs version (#451)
* (PE-38155) Updating node_manager to use latest puppetlabs version Added rule purge to PE Infrastructure Agent * Adding node_manager upper bound Co-authored-by: Tim Meusel <[email protected]> --------- Co-authored-by: Tim Meusel <[email protected]>
1 parent 6ad0475 commit d0c72ab

File tree

10 files changed

+11
-117
lines changed

10 files changed

+11
-117
lines changed

.fixtures.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ fixtures:
55
service: "puppetlabs/service"
66
package: "puppetlabs/package"
77
reboot: "puppetlabs/reboot"
8-
node_manager:
9-
repo: "WhatsARanjit/node_manager"
10-
ref: "0.7.5"
118
repositories:
129
facts: "https://github.com/puppetlabs/puppetlabs-facts.git"
1310
puppet_agent: "https://github.com/puppetlabs/puppetlabs-puppet_agent.git"
@@ -17,6 +14,7 @@ fixtures:
1714
bolt_shim: "https://github.com/puppetlabs/puppetlabs-bolt_shim"
1815
format: "https://github.com/voxpupuli/puppet-format"
1916
container_inventory: "https://gitlab.com/nwops/bolt-container_inventory"
17+
node_manager: "https://github.com/puppetlabs/puppetlabs-node_manager.git"
2018
symlinks:
2119
"peadm": "#{source_dir}"
2220
"peadm_spec": "#{source_dir}/spec/acceptance/peadm_spec"

.github/workflows/ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ on:
99
jobs:
1010
Spec:
1111
if: ${{ github.repository_owner == 'puppetlabs' }}
12-
# Temporary workaround for allowing locking node_manager less than latest
13-
# uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
14-
uses: "./.github/workflows/module_ci.yml"
12+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
1513
secrets: "inherit"
1614

1715
Acceptance:

.github/workflows/module_ci.yml

Lines changed: 0 additions & 92 deletions
This file was deleted.

.github/workflows/nightly.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@ on:
88
jobs:
99
Spec:
1010
if: ${{ github.repository_owner == 'puppetlabs' }}
11-
# Temporary workaround for allowing locking node_manager less than latest
12-
# uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
13-
uses: "./.github/workflows/module_ci.yml"
11+
uses: "puppetlabs/cat-github-actions/.github/workflows/module_ci.yml@main"
1412
secrets: "inherit"
1513

1614
Acceptance:

Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# The following directive installs modules to the managed moduledir.
55
moduledir '.modules'
66

7-
mod 'WhatsARanjit/node_manager', '0.7.5'
7+
mod 'puppetlabs/node_manager', '1.0.1'
88
mod 'puppet/format', '1.1.1'
99
mod 'puppetlabs/stdlib', '9.5.0'

bolt-project.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

manifests/setup/node_manager.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
# We modify this group's rule such that all PE infrastructure nodes will be
5656
# members.
5757
node_group { 'PE Infrastructure Agent':
58-
rule => ['or',
58+
purge_behavior => rule,
59+
rule => ['or',
5960
['~', ['trusted', 'extensions', peadm::oid('peadm_role')], '^puppet/'],
6061
['~', ['fact', 'pe_server_version'], '.+']
6162
],

metadata.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"version_requirement": ">= 9.0.0 < 10.0.0"
1414
},
1515
{
16-
"name": "WhatsARanjit/node_manager",
17-
"version_requirement": "0.7.5"
16+
"name": "puppetlabs/node_manager",
17+
"version_requirement": ">= 1.0.1 < 2.0.0"
1818
},
1919
{
2020
"name": "puppetlabs/bolt_shim",

spec/docker/Puppetfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ moduledir '.modules'
77
mod 'puppet/format', '1.0.0'
88
mod 'puppetlabs/bolt_shim', '0.3.2'
99
mod 'puppetlabs/apply_helpers', '0.3.0'
10-
mod 'WhatsARanjit/node_manager', '0.7.5'
10+
mod 'puppetlabs/node_manager', '1.0.1'
1111
mod 'puppetlabs/ruby_task_helper', '0.5.1'
1212
mod 'puppetlabs/stdlib', '7.1.0'
1313
mod 'nwops/container_inventory', '0.1.1'

spec/docker/bolt-project.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ modules:
66
- name: puppetlabs/stdlib
77
version_requirement: ">= 6.5.0 < 8.0.0"
88
- puppetlabs/ruby_task_helper
9-
- name: WhatsARanjit/node_manager
10-
version_requirement: "0.7.5"
9+
- name: puppetlabs/node_manager
10+
version_requirement: ">= 1.0.1 < 2.0.0"
1111
- puppetlabs/apply_helpers
1212
- puppetlabs/bolt_shim
1313
- puppet/format

0 commit comments

Comments
 (0)