# vim: set syntax=yaml ts=2 sw=2 sts=2 et : # # # {% if grains['nodename'] != 'dom0' %} mullvad_repo: file.append: - name: /etc/apt/sources.list.d/mullvad.list - text: "deb [signed-by=/usr/share/keyrings/mullvad-keyring.asc arch=$( dpkg --print-architecture )] https://repository.mullvad.net/deb/stable $(lsb_release -cs) main" {% 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 %} mullvad_update: pkg.uptodate: - refresh: True installed: pkg.installed: - pkgs: - qubes-core-agent-networking - qubes-core-agent-passwordless-root - iproute2 - libnotify-bin - mate-notification-daemon - resolvconf - unzip - mullvad-vpn - wireguard - wireguard-tools - zenity {% endif %}