diff --git a/ansible/roles/apt/templates/kayobe.sources.j2 b/ansible/roles/apt/templates/kayobe.sources.j2 index 91f6bf6b4..b63f600de 100644 --- a/ansible/roles/apt/templates/kayobe.sources.j2 +++ b/ansible/roles/apt/templates/kayobe.sources.j2 @@ -11,5 +11,8 @@ Signed-by: {{ apt_keys_path }}/{{ repo.signed_by }} {% if repo.architecture is defined %} Architecture: {{ repo.architecture }} {% endif %} +{% if repo.trusted is defined %} +Trusted: {{ repo.trusted | bool }} +{% endif %} {% endfor %} diff --git a/doc/source/configuration/reference/hosts.rst b/doc/source/configuration/reference/hosts.rst index b28e32919..47f2fd1ed 100644 --- a/doc/source/configuration/reference/hosts.rst +++ b/doc/source/configuration/reference/hosts.rst @@ -376,6 +376,7 @@ items: ``apt_keys_path`` (optional, default is unset) * ``architecture``: whitespace-separated list of architectures that will be used (optional, default is unset) +* ``trusted``: boolean value (optional, default is unset) The default of ``apt_repositories`` is an empty list. diff --git a/releasenotes/notes/apt-configure-trust-for-repos-e2d379b5f5a4ec30.yaml b/releasenotes/notes/apt-configure-trust-for-repos-e2d379b5f5a4ec30.yaml new file mode 100644 index 000000000..2aec2c35a --- /dev/null +++ b/releasenotes/notes/apt-configure-trust-for-repos-e2d379b5f5a4ec30.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Adds support for setting whether an Apt repo is trusted.