share - only rewrite repo defs if cacher exists.

Closes #23
This commit is contained in:
unman 2023-01-29 16:14:53 +00:00
parent cf731c64b3
commit a959efbaec
No known key found for this signature in database
GPG Key ID: FDD1B8244731B36C

View File

@ -1,22 +1,17 @@
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
{% if salt['qvm.exists']('cacher') %}
/etc/apt/sources.list:
file.replace:
- names:
- /etc/apt/sources.list
- /etc/apt/sources.list.d/qubes-r4.list
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
/etc/apt/sources.list.d/qubes-r4.list:
file.replace:
- pattern: 'https:'
- repl: 'http://HTTPS/'
- flags: [ 'IGNORECASE', 'MULTILINE' ]
allow-testing:
file.uncomment:
- name: /etc/apt/sources.list.d/qubes-r4.list
- regex: ^deb\s.*qubes-os.org.*-testing
- backup: false
{% endif %}
installed:
pkg.installed: