Support setting whether an Apt repo is trusted

Useful if you're configuring your own private repos, and don't/can't
sign them.

Change-Id: I2d592c5479530b2fe9a60c14ee59e817b8402490
This commit is contained in:
Matt Crees 2024-07-10 16:26:32 +01:00
parent 6e302108a3
commit 2b06c6a39a
3 changed files with 8 additions and 0 deletions

View File

@ -11,5 +11,8 @@ Signed-by: {{ apt_keys_path }}/{{ repo.signed_by }}
{% if repo.architecture is defined %} {% if repo.architecture is defined %}
Architecture: {{ repo.architecture }} Architecture: {{ repo.architecture }}
{% endif %} {% endif %}
{% if repo.trusted is defined %}
Trusted: {{ repo.trusted | bool }}
{% endif %}
{% endfor %} {% endfor %}

View File

@ -376,6 +376,7 @@ items:
``apt_keys_path`` (optional, default is unset) ``apt_keys_path`` (optional, default is unset)
* ``architecture``: whitespace-separated list of architectures that will be used * ``architecture``: whitespace-separated list of architectures that will be used
(optional, default is unset) (optional, default is unset)
* ``trusted``: boolean value (optional, default is unset)
The default of ``apt_repositories`` is an empty list. The default of ``apt_repositories`` is an empty list.

View File

@ -0,0 +1,4 @@
---
features:
- |
Adds support for setting whether an Apt repo is trusted.