Skip to content

builder-upgrade: drop relops sudoers before the upgrade; expect pmset exec - #94

Merged
rcurranmoz merged 1 commit into
mainfrom
builder-upgrade-presudo
Oct 22, 2026
Merged

rcurranmoz merged 1 commit into
mainfrom
builder-upgrade-presudo

Conversation

@rcurranmoz

Copy link
Copy Markdown
Collaborator

The macOS upgrade resets /etc/sudoers to stock, which cost relops its NOPASSWD rule on r8-138 and needed a person to put it back. stop_worker now writes /etc/sudoers.d/zz-builder-upgrade while sudo still works; stock sudoers reads sudoers.d, so the sudo step after the upgrade just works. Puppet's sudo class purges the drop-in on its first run under the new role.

Also adds Exec[pmset_SleepDisabled] to the execs expected on every puppet run, so the second-run idempotence check doesn't trip on it.

… exec

stop_worker now writes /etc/sudoers.d/zz-builder-upgrade while sudo still
works. The upgrade resets /etc/sudoers to Apple's stock file, which reads
sudoers.d, so if the drop-in survives the upgrade the sudo step no longer
needs the SimpleMDM pkg, a password, or a person (r8-138 needed all three).
Puppet's sudo class purges the dir on its first run under the new role.

pmset_SleepDisabled runs on every puppet run, like the mercurial exec.
@rcurranmoz
rcurranmoz requested a review from a team as a code owner October 22, 2026 19:13
@rcurranmoz
rcurranmoz merged commit d70ed17 into main Oct 22, 2026
3 checks passed
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.

1 participant