stages/authselect: rename profile_id option to profile
Rename the `profile_id` option to `profile` in the stage schema. This is a follow-up to PR#696 comment after is has been merged [1]. [1] https://github.com/osbuild/osbuild/pull/696#discussion_r661253293 Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
parent
cc39d5a8b4
commit
7617cb9a44
3 changed files with 8 additions and 8 deletions
|
|
@ -4,10 +4,10 @@ Select system identity and authentication sources with authselect.
|
|||
|
||||
Sets system identity and authentication sources.
|
||||
|
||||
The stage calls `authselect select` to set authselect profile to 'profile_id'.
|
||||
The stage calls `authselect select` to set authselect profile to 'profile'.
|
||||
Optionally a list of profile features to enable may be provided using 'features'
|
||||
option. The list of available profile features can be obtained by running
|
||||
`authselect list-features <profile_id>`.
|
||||
`authselect list-features <profile>`.
|
||||
|
||||
Notes:
|
||||
- Requires 'chroot' in the buildroot.
|
||||
|
|
@ -23,10 +23,10 @@ import osbuild.api
|
|||
|
||||
SCHEMA = """
|
||||
"additionalProperties": false,
|
||||
"required": ["profile_id"],
|
||||
"required": ["profile"],
|
||||
"description": "Select system identity and authentication sources.",
|
||||
"properties": {
|
||||
"profile_id": {
|
||||
"profile": {
|
||||
"type": "string",
|
||||
"description": "Desired authselect profile to activate."
|
||||
},
|
||||
|
|
@ -43,13 +43,13 @@ SCHEMA = """
|
|||
|
||||
|
||||
def main(tree, options):
|
||||
profile_id = options["profile_id"]
|
||||
profile = options["profile"]
|
||||
features = options.get("features", [])
|
||||
|
||||
cmd = [
|
||||
"/usr/sbin/chroot", tree,
|
||||
# force authselect to overwrite existing files without making a backup
|
||||
"/usr/bin/authselect", "select", "--force", "--nobackup", profile_id
|
||||
"/usr/bin/authselect", "select", "--force", "--nobackup", profile
|
||||
]
|
||||
cmd.extend(features)
|
||||
|
||||
|
|
|
|||
|
|
@ -459,7 +459,7 @@
|
|||
{
|
||||
"name": "org.osbuild.authselect",
|
||||
"options": {
|
||||
"profile_id": "nis",
|
||||
"profile": "nis",
|
||||
"features": [
|
||||
"with-ecryptfs",
|
||||
"with-mkhomedir"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
{
|
||||
"name": "org.osbuild.authselect",
|
||||
"options": {
|
||||
"profile_id": "nis",
|
||||
"profile": "nis",
|
||||
"features": [
|
||||
"with-ecryptfs",
|
||||
"with-mkhomedir"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue