-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add a config that uses a user kickstart file
The user kickstart contents is identical to the contents added when the sudo-nopasswd options are enabled, so this configuration produces the same manifest as the unattended-iso configuration.
- Loading branch information
1 parent
f20af02
commit 1acd9bd
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "unattended-iso-userkickstart", | ||
"blueprint": { | ||
"customizations": { | ||
"user": [ | ||
{ | ||
"groups": [ | ||
"wheel" | ||
], | ||
"key": "ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBNebAh6SjpAn8wB53K4695cGnHGuCtl4RdaX3futZgJUultHyzeYHnzMO7d4++qnRL+Rworew62LKP560uvtncc= github.com/osbuild/images", | ||
"name": "osbuild" | ||
} | ||
], | ||
"locale": { | ||
"languages": [ | ||
"en_GB.UTF-8" | ||
], | ||
"keyboard": "uk" | ||
}, | ||
"timezone": { | ||
"timezone": "Europe/Berlin" | ||
}, | ||
"installer": { | ||
"unattended": true, | ||
"kickstart": { | ||
"contents": "%post\necho -e \"%sudo\\tALL=(ALL)\\tNOPASSWD: ALL\" > \"/etc/sudoers.d/%sudo\"\nchmod 0440 /etc/sudoers.d/%sudo\necho -e \"%wheel\\tALL=(ALL)\\tNOPASSWD: ALL\" > \"/etc/sudoers.d/%wheel\"\nchmod 0440 /etc/sudoers.d/%wheel\nrestorecon -rvF /etc/sudoers.d\n%end\n" | ||
} | ||
} | ||
} | ||
} | ||
} |