shaker/gpg/install.sls
unman 935e0e9c07
Split GPG - update to 4.2.
Handle all repositories for cacher as necessary
2024-02-07 03:40:32 +00:00

35 lines
781 B
YAML

# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
{% if salt['pillar.get']('update_proxy:caching') %}
{% if grains['os_family']|lower == 'debian' %}
{% if grains['nodename']|lower != 'host' %}
{% for repo in salt['file.find']('/etc/apt/sources.list.d/', name='*list') %}
{{ repo }}_baseurl:
file.replace:
- name: {{ repo }}
- pattern: 'https://'
- repl: 'http://HTTPS///'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
- backup: False
{% endfor %}
/etc/apt/sources.list:
file.replace:
- name: /etc/apt/sources.list
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
- backup: False
{% endif %}
{% endif %}
{% endif %}
installed:
pkg.installed:
- pkgs:
- qubes-gpg-split
- gnupg
- keepassxc