-
Notifications
You must be signed in to change notification settings - Fork 911
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
doc: update examples to reflect alternative ways to provide sudo
option
#5418
Conversation
sudo
option
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks!
This configuration: ``` users: - name: osadmin lock_passwd: false sudo: ["ALL=(ALL) NOPASSWD:ALL"] ``` Is valid syntax but is missing from the jsonschema definition. Fixes canonicalGH-5399
…tion (canonical#5418) For creating users and groups, it is possible to pass a `sudo` option to the config file that accepts a sudo rule. The option can be a sudo rule string, a list of sudo rule strings or `False` to explicitly deny sudo usage. Update examples to show how a list of strings can be used with `sudo` option. Signed-off-by: Ani Sinha <[email protected]>
@ani-sinha I just force pushed to this branch to include the PR number in the first line of the individual commits. |
This configuration: ``` users: - name: osadmin lock_passwd: false sudo: ["ALL=(ALL) NOPASSWD:ALL"] ``` Is valid syntax but is missing from the jsonschema definition. Fixes GH-5399
@holmanb there is also a broad issue. The schema validator complains that
Thus |
@ani-sinha I nearly missed this comment. Please open a new issue referencing the closed PR or issue in the future so that things like this don't get missed.
Since |
|
This configuration: ``` users: - name: osadmin lock_passwd: false sudo: ["ALL=(ALL) NOPASSWD:ALL"] ``` Is valid syntax but is missing from the jsonschema definition. Fixes GH-5399
…tion (#5418) For creating users and groups, it is possible to pass a `sudo` option to the config file that accepts a sudo rule. The option can be a sudo rule string, a list of sudo rule strings or `False` to explicitly deny sudo usage. Update examples to show how a list of strings can be used with `sudo` option. Signed-off-by: Ani Sinha <[email protected]>
Ubuntu noble ships a cloud-init version without this fix: canonical/cloud-init#5418
For creating users and groups, it is possible to pass a
sudo
option to theconfig file that accepts a sudo rule. The option can be a sudo rule string,
a list of sudo rule strings or
False
to explicitly deny sudo usage. Updateexamples to show how a list of strings can be used with
sudo
option.