From 4c21076cb27a1ed29b05c54f240f338414329fc2 Mon Sep 17 00:00:00 2001 From: Robert Wimmer <2039811+githubixx@users.noreply.github.com> Date: Wed, 25 Nov 2020 23:00:15 +0100 Subject: [PATCH] added support for openSUSE Leap 15.2 (#89) --- CHANGELOG.md | 6 +++++- meta/main.yml | 3 +++ molecule/kvm/molecule.yml | 14 ++++++++++++++ tasks/setup-opensuse leap.yml | 13 +++++++++++++ 4 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 tasks/setup-opensuse leap.yml diff --git a/CHANGELOG.md b/CHANGELOG.md index 4105873..d3ce80f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,16 @@ SPDX-License-Identifier: GPL-3.0-or-later Changelog --------- +**7.8.0** + +- Added support for `openSUSE Leap 15.2` + **7.7.0** - Use wireguard packages from Debian Backports instead of Debian Sid, these packages are more suitable for a stable distribution and have less impact on the system. Packages from unstable must be removed manually (including kernel) to make the switch on an existing system. Upgrading the role has no effect other than adding Debian Backports to the Apt repositories. - Fix reboot mechanism in Raspbian role, now also works without `molly-guard` **7.6.0** -- Add `wireguard_private_key` variable (contribution by @j8r) +- Added `wireguard_private_key` variable (contribution by @j8r) - Fix check mode for Debian (contribution by @j8r) **7.5.0** diff --git a/meta/main.yml b/meta/main.yml index 5f87c4b..fab832c 100644 --- a/meta/main.yml +++ b/meta/main.yml @@ -23,6 +23,9 @@ galaxy_info: versions: - 31 - 32 + - name: opensuse + versions: + - 15.2 galaxy_tags: - networking - security diff --git a/molecule/kvm/molecule.yml b/molecule/kvm/molecule.yml index 3cfdbd3..eae0c11 100644 --- a/molecule/kvm/molecule.yml +++ b/molecule/kvm/molecule.yml @@ -88,6 +88,15 @@ platforms: ip: 192.168.10.80 groups: - vpn + - name: test-wg-opensuse-leap + box: opensuse/Leap-15.2.x86_64 + interfaces: + - auto_config: true + network_name: private_network + type: static + ip: 192.168.10.90 + groups: + - vpn provisioner: name: ansible @@ -141,6 +150,11 @@ provisioner: wireguard_persistent_keepalive: "30" wireguard_endpoint: "192.168.10.80" ansible_python_interpreter: "/usr/bin/python" + test-wg-opensuse-leap: + wireguard_address: "10.10.10.90/24" + wireguard_port: 51820 + wireguard_persistent_keepalive: "30" + wireguard_endpoint: "192.168.10.90" scenario: name: kvm diff --git a/tasks/setup-opensuse leap.yml b/tasks/setup-opensuse leap.yml new file mode 100644 index 0000000..808dc60 --- /dev/null +++ b/tasks/setup-opensuse leap.yml @@ -0,0 +1,13 @@ +--- +# Copyright (C) 2020 Robert Wimmer +# SPDX-License-Identifier: GPL-3.0-or-later + + +- name: (openSUSE Leap) Install WireGuard packages + zypper: + name: + - "wireguard-tools" + state: present + tags: + - wg-install +