Skip to content

feat(clean): add cleanup for sudoers config - #7012

Open
cjp256 wants to merge 3 commits into
canonical:mainfrom
cjp256:clean-sudoers
Open

feat(clean): add cleanup for sudoers config#7012
cjp256 wants to merge 3 commits into
canonical:mainfrom
cjp256:clean-sudoers

Conversation

@cjp256

@cjp256 cjp256 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Extend 'cloud-init clean --configs' to remove the cloud-init generated sudoers file (/etc/sudoers.d/90-cloud-init-users) via the new 'sudoers' type and 'all'.

Remove incomplete config type list from parser help argument as --help already enumerates choices when configured in the ArgumentParser.

Originally reported as issue here:
Azure/WALinuxAgent#3663

@cjp256 cjp256 changed the title feat(clean): add sudoers config type to 'cloud-init clean' feat(clean): add cleanup for sudoers config Aug 19, 2026
Extend 'cloud-init clean --configs' to remove the cloud-init generated
sudoers file (/etc/sudoers.d/90-cloud-init-users) via the new 'sudoers'
type and 'all'.

Remove incomplete config type list from parser `help` argument as --help
already enumerates `choices` when configured in the ArgumentParser.

Originally reported as issue here:
Azure/WALinuxAgent#3663

Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
@github-actions github-actions Bot added the documentation This Pull Request changes documentation label Aug 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This Pull Request changes documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants