Skip to content

Commit

Permalink
Support setting whether an Apt repo is trusted
Browse files Browse the repository at this point in the history
Useful if you're configuring your own private repos, and don't/can't
sign them.

Change-Id: I2d592c5479530b2fe9a60c14ee59e817b8402490
  • Loading branch information
MoteHue committed Jul 11, 2024
1 parent 60ef886 commit dff362a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ansible/roles/apt/templates/kayobe.sources.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
1 change: 1 addition & 0 deletions doc/source/configuration/reference/hosts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,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.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
features:
- |
Adds support for setting whether an Apt repo is trusted.

0 comments on commit dff362a

Please sign in to comment.