f1f4c0a890
- ci-feat-sysconfig-Add-DNS-from-interface-config-to-reso.patch [RHEL-17961] - ci-fix-jsonschema-Add-missing-sudo-definition-5418.patch [RHEL-44337] - ci-doc-update-examples-to-reflect-alternative-ways-to-p.patch [RHEL-44337] - ci-fix-dhcp-Guard-against-FileNotFoundError-and-NameErr.patch [RHEL-44598] - ci-fix-Address-TIOBE-abstract-interpretation-issues-486.patch [RHEL-44598] - ci-Update-pylint-version-to-support-python-3.12-5338.patch [RHEL-44598] - Resolves: RHEL-17961 ([RHEL-9] cloud-init fails to configure DNS search domains) - Resolves: RHEL-44337 ([rhel-9] fix `SUDO` configuration schema for users and groups) - Resolves: RHEL-44598 (fix pylint error and support python 3.12)
54 lines
1.7 KiB
Diff
54 lines
1.7 KiB
Diff
From b7fddab36d805099639358736dab474d2924906b Mon Sep 17 00:00:00 2001
|
|
From: Brett Holman <brett.holman@canonical.com>
|
|
Date: Wed, 19 Jun 2024 17:07:56 -0600
|
|
Subject: [PATCH 2/6] fix(jsonschema): Add missing sudo definition (#5418)
|
|
|
|
RH-Author: Ani Sinha <anisinha@redhat.com>
|
|
RH-MergeRequest: 90: fix(jsonschema): Add missing sudo definition (#5418)
|
|
RH-Jira: RHEL-44337
|
|
RH-Acked-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
|
|
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
RH-Commit: [1/2] 9e56c7ab35744c6530c8cef2f122ffdcc0480d29 (anisinha/cloud-init)
|
|
|
|
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
|
|
|
|
(cherry picked from commit b533fa51acb850ed754e2b1925e276ff8e5f3507)
|
|
---
|
|
cloudinit/config/schemas/schema-cloud-config-v1.json | 9 +++++++++
|
|
1 file changed, 9 insertions(+)
|
|
|
|
diff --git a/cloudinit/config/schemas/schema-cloud-config-v1.json b/cloudinit/config/schemas/schema-cloud-config-v1.json
|
|
index a553c52c..8b10fe70 100644
|
|
--- a/cloudinit/config/schemas/schema-cloud-config-v1.json
|
|
+++ b/cloudinit/config/schemas/schema-cloud-config-v1.json
|
|
@@ -299,6 +299,15 @@
|
|
],
|
|
"description": "Sudo rule to use or false. Absence of a sudo value or ``null`` will result in no sudo rules added for this user."
|
|
},
|
|
+ {
|
|
+ "type": "array",
|
|
+ "items": {
|
|
+ "type": [
|
|
+ "string",
|
|
+ "null"
|
|
+ ]
|
|
+ }
|
|
+ },
|
|
{
|
|
"type": "boolean",
|
|
"changed": true,
|
|
--
|
|
2.39.3
|
|
|