Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PE-39577) Optimise legacy compiler support #536

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

petergmurphy
Copy link

@petergmurphy petergmurphy commented Jan 15, 2025

Summary

This PR will:

  • Automatically unpin legacy compilers from the PE Master node group after conversion.
  • Ensures peadm::upgrade runs successfully after a peadm::convert
  • Ensures that puppet infra configure does not remove classification rules that rely on trusted facts for legacy compilers.
  • Ensures pp_auth_role=legacy_compiler on legacy compiler nodes.
  • Makes PEADM config use the PE Certificate Authority node group.
  • Removes peadm_legacy_compiler extension.

Additional Context

Add any additional context about the problem here.

Related Issues (if any)

Mention any related issues or pull requests.

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

@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 2 times, most recently from 4b1a560 to b5b9ca5 Compare January 16, 2025 14:19
plans/convert.pp Outdated
@@ -232,7 +232,7 @@
run_plan('peadm::modify_certificate', $legacy_compiler_a_targets,
primary_host => $primary_target,
add_extensions => {
peadm::oid('pp_auth_role') => 'pe_compiler',
peadm::oid('pp_auth_role') => 'legacy_compiler',
peadm::oid('peadm_availability_group') => 'A',
peadm::oid('peadm_legacy_compiler') => 'true',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Think we won't need the true or false bit

@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch from b5b9ca5 to 9888996 Compare January 21, 2025 14:40
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch 12 times, most recently from d774ff3 to 9e5efc3 Compare January 30, 2025 15:51
This commit:
- Adds the `node_group_unpin` task.
- `node_group_unpin` task is called in the convert plan to remove
  legacy compilers from from the PE Master node group.
- Legacy compilers `pp_auth_role` changed to `legacy_compiler`.
- Changes the PEADM config to use the PE Certificate Authority node group.
- Removes peadm_legacy_compiler extension.
@petergmurphy petergmurphy force-pushed the pe-39577-optimise-legacy-compiler-support branch from 9e5efc3 to 1431087 Compare January 30, 2025 16:41
@petergmurphy petergmurphy marked this pull request as ready for review January 31, 2025 09:52
@petergmurphy petergmurphy requested review from a team as code owners January 31, 2025 09:52
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