Skip to content

Conversation

@davidmalloncares
Copy link
Collaborator

Summary

Pushing this to circumvent the CI Acceptance test issues with PR 635

Checklist

  • 🟢 Spec tests.
  • [] 🟢 Acceptance tests.

Changes include test coverage?

  • [] Yes
  • Not needed

Have you updated the documentation?

  • Yes, I've updated the appropriate docs
  • [] Not needed

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
#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 #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.
@davidmalloncares davidmalloncares requested review from a team as code owners November 19, 2025 19:27
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.

3 participants