mirror of
https://github.com/d9pouces/id_configurator.git
synced 2026-11-09 01:47:21 +01:00
feat: enhance repository configuration to support url_to_replace patterns for disabling existing entries
Signed-off-by: d9pouces <github@19pouces.net>
This commit is contained in:
@@ -167,6 +167,13 @@ options:
|
||||
description:
|
||||
type: str
|
||||
description: DEB822 "Description" field.
|
||||
uri_to_replace:
|
||||
type: str
|
||||
description:
|
||||
- fnmatch pattern checked against the URIs already present in
|
||||
the machine's existing apt configuration. If set, this
|
||||
source is only applied when the pattern matches at least
|
||||
one of them; otherwise it is skipped entirely.
|
||||
apk:
|
||||
type: dict
|
||||
default: {}
|
||||
@@ -185,6 +192,13 @@ options:
|
||||
key:
|
||||
type: str
|
||||
description: The signing key's name, if any (see NamedContent).
|
||||
url_to_replace:
|
||||
type: str
|
||||
description:
|
||||
- fnmatch pattern checked against the URLs already active in
|
||||
the machine's existing /etc/apk/repositories. If set, this
|
||||
repository is only applied when the pattern matches at
|
||||
least one of them; otherwise it is skipped entirely.
|
||||
yum:
|
||||
type: dict
|
||||
default: {}
|
||||
@@ -207,6 +221,13 @@ options:
|
||||
gpg_url:
|
||||
type: str
|
||||
description: The repository's gpgkey URL.
|
||||
index_url_to_replace:
|
||||
type: str
|
||||
description:
|
||||
- fnmatch pattern checked against the baseurl of every
|
||||
section of every existing .repo file. If set, this
|
||||
repository is only applied when the pattern matches at
|
||||
least one of them; otherwise it is skipped entirely.
|
||||
keys:
|
||||
type: list
|
||||
elements: dict
|
||||
@@ -491,6 +512,7 @@ ARGUMENT_SPEC = {
|
||||
"check_date": {"type": "bool"},
|
||||
"date_max_future": {"type": "str"},
|
||||
"description": {"type": "str"},
|
||||
"uri_to_replace": {"type": "str"},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -506,6 +528,7 @@ ARGUMENT_SPEC = {
|
||||
"options": {
|
||||
"url": {"type": "str", "required": True},
|
||||
"key": {"type": "str"},
|
||||
"url_to_replace": {"type": "str"},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -522,6 +545,7 @@ ARGUMENT_SPEC = {
|
||||
"name": {"type": "str", "required": True},
|
||||
"index_url": {"type": "str", "required": True},
|
||||
"gpg_url": {"type": "str"},
|
||||
"index_url_to_replace": {"type": "str"},
|
||||
},
|
||||
},
|
||||
"keys": {
|
||||
|
||||
Reference in New Issue
Block a user