Skip to content

Conversation

@bastelfreak
Copy link
Collaborator

Commit 1:

This makes the environment for node groups configureable. The default is
'production'. This is also the default in the node_group resource type:

https://github.com/puppetlabs/puppetlabs-node_manager/blob/main/lib/puppet/type/node_group.rb#L124

We could also default to undef in PEADM and rely on the node_manage module, but explicitly setting production seems to be safer.

This is related to #469 and makes the environment configureable during upgrades.

Co-authored-by: David Mallon [email protected]


Commit 2:

This checks if a user configured a environment in pe.conf. If that's the case, it will be used for the PEADM-specific node groups. Otherwise we fall back to production.

This fixes a timing issue discovered in #469. In situations where the PE
infra isn't running in production, we cannot assume that a production environment exists. And a node group can only reference classes from the environment the node group belongs to.

@bastelfreak bastelfreak requested review from a team as code owners November 17, 2025 18:21
@davidmalloncares
Copy link
Collaborator

Thanks Tim, I'll do some final testing today. On the CI issues - if you rebase from main there should be a fix for the failures on the Failed Postgres and Migration workflows on the git checkout. I have an IT ticket open to resolve the failing CI Acceptance tests too.

bastelfreak and others added 2 commits November 18, 2025 13:44
This makes the environment for node groups configureable. The default is
'production'. This is also the default in the node_group resource type:

https://github.com/puppetlabs/puppetlabs-node_manager/blob/main/lib/puppet/type/node_group.rb#L124

We could also default to `undef` in PEADM and rely on the node_manage
module, but explicitly setting `production` seems to be safer.

This is related to
puppetlabs#469 and makes the
environment configureable during upgrades.

Co-authored-by: David Mallon <[email protected]>
This checks if a user configured a environment in pe.conf. If that's the
case, it will be used for the PEADM-specific node groups. Otherwise we
fall back to production.

This fixes a timing issue discovered in puppetlabs#469. In situations where the PE
infra isn't running in production, we cannot assume that a production
environment exists. And a node group can only reference classes from the
environment the node group belongs to.
@bastelfreak
Copy link
Collaborator Author

@davidmalloncares thanks, just did the rebase!

@davidmalloncares
Copy link
Collaborator

I got a workaround to get (most of) the failing Acceptance tests passing - the CentOS 9 one is failing due to a known issue so we will have to merge past that. Unfortunately the rest of the tests need to re-run and go Green so we can keep kicking them until they pass again and merge this in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants