Skip to content

Commit

Permalink
Support Ubuntu 22.04 (Jammy Jellyfish) (#159)
Browse files Browse the repository at this point in the history
* add Ubuntu 22.04 (Jammy Jellyfish) support

* update README
  • Loading branch information
githubixx authored May 18, 2022
1 parent 8d395dd commit fad7b1d
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ SPDX-License-Identifier: GPL-3.0-or-later

# Changelog

## 9.3.0

- add support for Ubuntu 22.04 (Jammy Jellyfish)

## 9.2.0

- add `wireguard_interface_restart` variable. This allows the user to decide if the WireGuard interface should be restarted or not in case of changes to the interface. The default is (and was) to use `wg syncconf` which applies the changes to the interface without the need to restart the interface. Restarting the interface was only done if `wg`'s `syncconf` command wasn't available. But that's basically only true for very old (and outdated) WireGuard tools. For more information on this have a look at the README (initial [PR](https://github.com/githubixx/ansible-role-wireguard/pull/152) by @lmm-git)
Expand Down
30 changes: 27 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Copyright (C) 2018-2021 Robert Wimmer
Copyright (C) 2018-2022 Robert Wimmer
Copyright (C) 2019 fbourqui
SPDX-License-Identifier: GPL-3.0-or-later
-->
Expand All @@ -14,7 +14,21 @@ In general WireGuard is a network tunnel (VPN) for IPv4 and IPv6 that uses UDP.
Linux
-----

This role is mainly tested with Ubuntu 20.04 (Focal Fossa) and Archlinux. Ubuntu 18.04 (Bionic Beaver), Debian 10 (Buster), Debian 11 (Bullseye), Fedora 34 (or later), CentOS 7, AlmaLinux, Rocky Linux and openSUSE Leap 15.3 should also work and are tested via the provided [Molecule tests](https://github.com/githubixx/ansible-role-wireguard#testing) (see further down below). It should also work with `Raspbian Buster` but for this one there is no test available. MacOS (see below) should also work partitially but is only best effort.
This role should work with:

- Ubuntu 18.04 (Bionic Beaver)
- Ubuntu 20.04 (Focal Fossa)
- Ubuntu 22.04 (Jammy Jellyfish)
- Archlinux
- Debian 10 (Buster)
- Debian 11 (Bullseye)
- Fedora 34 (or later)
- CentOS 7
- AlmaLinux
- Rocky Linux
- openSUSE Leap 15.3

Molecule tests are [available](https://github.com/githubixx/ansible-role-wireguard#testing) (see further down below). It should also work with `Raspbian Buster` but for this one there is no test available. MacOS (see below) should also work partitially but is only best effort.

MacOS
-----
Expand Down Expand Up @@ -478,14 +492,24 @@ Afterwards molecule can be executed:
molecule converge -s kvm
```

This will setup quite a few virtual machines (VM) with different supported Linux operating systems.
This will setup quite a few virtual machines (VM) with different supported Linux operating systems. To run a few tests:

```bash
molecule verify -s kvm
```

To clean up run

```bash
molecule destroy -s kvm
```

There is also a small Molecule setup that mimics a central WireGuard server with a few clients:

```bash
molecule converge -s kvm-single-server
```

License
-------

Expand Down
1 change: 1 addition & 0 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ galaxy_info:
versions:
- "bionic"
- "focal"
- "jammy"
- name: Debian
versions:
- "buster"
Expand Down
14 changes: 14 additions & 0 deletions molecule/kvm-single-server/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,16 @@ platforms:
groups:
- vpn
- debian
- name: test-wg-ubuntu2204
box: alvistack/ubuntu-22.04
interfaces:
- auto_config: true
network_name: private_network
type: static
ip: 192.168.10.40
groups:
- vpn
- ubuntu

provisioner:
name: ansible
Expand All @@ -70,6 +80,10 @@ provisioner:
wireguard_persistent_keepalive: "30"
wireguard_endpoint: ""
ansible_python_interpreter: "/usr/bin/python3"
test-wg-ubuntu2204:
wireguard_address: "10.10.10.40/24"
wireguard_persistent_keepalive: "30"
wireguard_endpoint: ""

scenario:
name: kvm-single-server
Expand Down
16 changes: 16 additions & 0 deletions molecule/kvm/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,17 @@ platforms:
- vpn
- el8
- el8dkms
- name: test-wg-ubuntu2204
box: alvistack/ubuntu-22.04
interfaces:
- auto_config: true
network_name: private_network
type: static
ip: 192.168.10.140
groups:
- vpn
- ubuntu


provisioner:
name: ansible
Expand Down Expand Up @@ -230,6 +241,11 @@ provisioner:
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.130"
wireguard_rockylinux8_installation_method: "dkms"
test-wg-ubuntu2204:
wireguard_address: "10.10.10.140/24"
wireguard_port: 51820
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.140"

scenario:
name: kvm
Expand Down

0 comments on commit fad7b1d

Please sign in to comment.