2022-10-26 11:43:40 -04:00
|
|
|
# vim: set syntax=yaml ts=2 sw=2 sts=2 et :
|
|
|
|
#
|
|
|
|
#
|
|
|
|
#
|
|
|
|
|
|
|
|
{% if grains['nodename'] != 'dom0' %}
|
|
|
|
|
|
|
|
/usr/share/keyrings/i2p-archive-keyring.gpg:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://i2p/i2p-archive-keyring.gpg
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
|
|
|
- makedirs: True
|
|
|
|
|
|
|
|
/etc/apt/sources.list.d/i2p.list:
|
|
|
|
file.managed:
|
|
|
|
- source:
|
|
|
|
- salt://i2p/i2p.list
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
|
|
|
- makedirs: True
|
|
|
|
|
2023-02-21 07:57:17 -05:00
|
|
|
{% if salt['pillar.get']('update_proxy:caching') %}
|
2022-10-26 11:43:40 -04:00
|
|
|
{% 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 %}
|
|
|
|
|
2022-10-29 12:01:01 -04:00
|
|
|
upgrade:
|
|
|
|
pkg.uptodate:
|
|
|
|
- refresh: True
|
|
|
|
- dist_upgrade: True
|
|
|
|
|
|
|
|
install:
|
2022-10-26 11:43:40 -04:00
|
|
|
pkg.installed:
|
|
|
|
- pkgs:
|
|
|
|
- qubes-core-agent-networking
|
2022-10-29 12:01:01 -04:00
|
|
|
- firefox-esr
|
2022-10-26 11:43:40 -04:00
|
|
|
- i2p
|
|
|
|
- i2p-keyring
|
2022-10-29 12:01:01 -04:00
|
|
|
- refresh: True
|
2022-10-26 11:43:40 -04:00
|
|
|
|
|
|
|
{% endif %}
|