Commit 454276ce authored by Sven enniK's avatar Sven enniK

wireguard: fix sls

parent 5ea350fe
......@@ -5,6 +5,14 @@
{% if kernel_pkg_check >= '1' %}
{# Package #}
{% if grains['os'] == 'Ubuntu' and grains['oscodename'] == 'xenial' %}
/etc/apt/sources.list.d/wireguard-ubuntu-wireguard-xenial.list:
file.absent
{% elif grains['os'] == 'Ubuntu' and grains['oscodename'] == 'bionic' %}
/etc/apt/sources.list.d/wireguard-ubuntu-wireguard-bionic.list:
file.absent
{% endif %}
wireguard:
{% if grains['os'] == 'Debian' %}
pkgrepo.managed:
......@@ -12,15 +20,6 @@ wireguard:
- name: deb http://deb.debian.org/debian/ unstable main
- dist: unstable
- file: /etc/apt/sources.list.d/wireguard.list
{% elif grains['os'] == 'Ubuntu' and grains['oscodename'] == 'xenial' %}
/etc/apt/sources.list.d/wireguard-ubuntu-wireguard-xenial.list:
file.absent
{% elif grains['os'] == 'Ubuntu' and grains['oscodename'] == 'bionic' %}
/etc/apt/sources.list.d/wireguard-ubuntu-wireguard-bionic.list:
file.absent
{% endif %}
pkg.installed:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment