diff --git a/ansible/roles/apt/templates/kayobe.sources.j2 b/ansible/roles/apt/templates/kayobe.sources.j2 index 91f6bf6b492b0946778a1858a9f327d215f950b1..b63f600deaf3c9ac187c832ad050b5a326ef61d5 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 e69de543decc3b18d811327e0fec3af23164e09c..975b216cff8cc1f43bf9e91c8bef30446f01140c 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 0000000000000000000000000000000000000000..2aec2c35a8c194517bcc271bf3802c35ce5bbb27 --- /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.