Skip to content

Commit

Permalink
Merge pull request #309 from stackhpc/zed-apt-trusted
Browse files Browse the repository at this point in the history
Support setting whether an Apt repo is trusted
  • Loading branch information
markgoddard authored Jul 11, 2024
2 parents 7c6530a + d5f7ca6 commit 9df274a
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 @@ -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.

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 9df274a

Please sign in to comment.