Skip to content

Commit

Permalink
12.0.0 (#181)
Browse files Browse the repository at this point in the history
* Fix Molecule prepare for Archlinux

* remove Debian 10 (Buster) support (readed EOL)

* remove openSUSE 15.3 support (reached EOL)

* add openSUSE 15.4 to meta/main.yml

* fix ansible-lint issue in tasks/setup-debian-raspbian-buster.yml

* remove Fedora 35 support (reached EOL)

* update CHANGELOG
  • Loading branch information
githubixx committed Feb 23, 2023
1 parent f6a6e46 commit 4631fbd
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 89 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ SPDX-License-Identifier: GPL-3.0-or-later

# Changelog

## 12.0.0

- remove Fedora 35 support (reached EOL)
- remove openSUSE 15.3 support (reached EOL)
- remove Debian 10 (Buster) support (readed EOL)
- fix Molecule prepare for Archlinux
- fix `ansible-lint` issue in `tasks/setup-debian-raspbian-buster.yml`

## 11.1.0

- add support for elementary OS 6
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,11 @@ This role should work with:
- Ubuntu 20.04 (Focal Fossa)
- Ubuntu 22.04 (Jammy Jellyfish)
- Archlinux
- Debian 10 (Buster)
- Debian 11 (Bullseye)
- Fedora 34 (or later)
- Fedora 36
- CentOS 7
- AlmaLinux
- Rocky Linux
- openSUSE Leap 15.3
- openSUSE Leap 15.4

Best effort:
Expand Down
4 changes: 1 addition & 3 deletions meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ galaxy_info:
- "jammy"
- name: Debian
versions:
- "buster"
- "bullseye"
- name: EL
versions:
Expand All @@ -27,11 +26,10 @@ galaxy_info:
- "9"
- name: Fedora
versions:
- "35"
- "36"
- name: opensuse
versions:
- "15.3"
- "15.4"
galaxy_tags:
- networking
- security
Expand Down
52 changes: 0 additions & 52 deletions molecule/kvm/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,6 @@ platforms:
groups:
- vpn
- ubuntu
- name: test-wg-debian10
box: generic/debian10
memory: 1024
cpus: 2
interfaces:
- auto_config: true
network_name: private_network
type: static
ip: 192.168.10.30
groups:
- vpn
- debian
- name: test-wg-fedora36
box: generic/fedora36
memory: 1024
Expand Down Expand Up @@ -133,30 +121,6 @@ platforms:
groups:
- vpn
- el7
- name: test-wg-opensuse-leap-15-3
box: opensuse/Leap-15.3.x86_64
memory: 1024
cpus: 2
interfaces:
- auto_config: true
network_name: private_network
type: static
ip: 192.168.10.110
groups:
- vpn
- opensuse
- name: test-wg-fedora35
box: generic/fedora35
memory: 1024
cpus: 2
interfaces:
- auto_config: true
network_name: private_network
type: static
ip: 192.168.10.120
groups:
- vpn
- fedora
- name: test-wg-rocky8-dkms
box: generic/rocky8
memory: 1024
Expand Down Expand Up @@ -239,12 +203,6 @@ provisioner:
wireguard_port: 51820
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.20"
test-wg-debian10:
wireguard_address: "10.10.10.30/24"
wireguard_port: 51820
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.30"
ansible_python_interpreter: "/usr/bin/python"
test-wg-fedora36:
wireguard_address: "10.10.10.40/24"
wireguard_port: 51820
Expand Down Expand Up @@ -285,16 +243,6 @@ provisioner:
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.100"
wireguard_centos7_installation_method: "kernel-plus"
test-wg-opensuse-leap-15-3:
wireguard_address: "10.10.10.110/24"
wireguard_port: 51822
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.110"
test-wg-fedora35:
wireguard_address: "10.10.10.120/24"
wireguard_port: 51823
wireguard_persistent_keepalive: "30"
wireguard_endpoint: "192.168.10.120"
test-wg-rocky8-dkms:
wireguard_address: "10.10.10.130/24"
wireguard_port: 51820
Expand Down
9 changes: 8 additions & 1 deletion molecule/kvm/prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
- hosts: archlinux
remote_user: vagrant
become: true
gather_facts: true
gather_facts: false
tasks:
- name: Init pacman
ansible.builtin.raw: |
Expand All @@ -26,6 +26,13 @@
changed_when: false
failed_when: false

- name: Install Python
ansible.builtin.raw: |
pacman -S --noconfirm python
args:
executable: /bin/bash
changed_when: false

- hosts: proxmox
remote_user: vagrant
become: true
Expand Down
1 change: 1 addition & 0 deletions tasks/setup-debian-raspbian-buster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
async: 1
poll: 0
ignore_unreachable: true
changed_when: false
when:
- ansible_version.full is version('2.8.0', '<')
- wireguard__register_kernel_update is changed
Expand Down
30 changes: 0 additions & 30 deletions tasks/setup-debian-vanilla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,6 @@
# Copyright (C) 2019-2020 Ties de Kock
# SPDX-License-Identifier: GPL-3.0-or-later

- name: (Debian) Tasks for Debian version <= 10
when:
- ansible_distribution_major_version is version('11', '<')
block:
- name: (Debian) Add WireGuard repository on buster
ansible.builtin.apt_repository:
repo: "deb http://deb.debian.org/debian buster-backports main"
state: present
update_cache: true

- name: (Debian) Install kernel headers for the currently running kernel to compile Wireguard with DKMS
ansible.builtin.apt:
name:
- "linux-headers-{{ ansible_kernel }}"
state: present

- name: (Debian) Get architecture
ansible.builtin.command: "dpkg --print-architecture"
register: wireguard__fact_dpkg_arch
changed_when: false
check_mode: false

- name: (Debian) Install kernel headers metapackage to ensure headers will be installed
ansible.builtin.apt:
name:
- "linux-headers-{{ wireguard__fact_dpkg_arch.stdout }}"
state: present
when:
- ('-cloud-' not in ansible_kernel)

- name: (Debian) Install WireGuard packages
ansible.builtin.apt:
name:
Expand Down

0 comments on commit 4631fbd

Please sign in to comment.