From 6c9bf1082dd48206a2222fa3a0ac0c635a0960e3 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Mon, 14 Jan 2019 22:10:59 +0100 Subject: arius/conflatorio: adding hesland VPN. --- ansible/files/arius/etc/wireguard/public-wg-hesland.key | 1 + ansible/files/webgateway/etc/wireguard/public-wg-hesland.key | 1 + ansible/group_vars/all/wireguard_wg-hesland.yml | 11 +++++++++++ ansible/inventory | 5 +++++ ansible/wireguard.yml | 9 +++++++++ 5 files changed, 27 insertions(+) create mode 100644 ansible/files/arius/etc/wireguard/public-wg-hesland.key create mode 100644 ansible/files/webgateway/etc/wireguard/public-wg-hesland.key create mode 100644 ansible/group_vars/all/wireguard_wg-hesland.yml (limited to 'ansible') diff --git a/ansible/files/arius/etc/wireguard/public-wg-hesland.key b/ansible/files/arius/etc/wireguard/public-wg-hesland.key new file mode 100644 index 0000000..3102f19 --- /dev/null +++ b/ansible/files/arius/etc/wireguard/public-wg-hesland.key @@ -0,0 +1 @@ ++h76BN8VCL/pZcDjhpSJXyTcLrUc7bPbB+aqwu892Gc= diff --git a/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key b/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key new file mode 100644 index 0000000..e9aa962 --- /dev/null +++ b/ansible/files/webgateway/etc/wireguard/public-wg-hesland.key @@ -0,0 +1 @@ +BSuop+m0ca2zrJ+gZgawFP22tM/MJ2YXIol2kr8ETT4= diff --git a/ansible/group_vars/all/wireguard_wg-hesland.yml b/ansible/group_vars/all/wireguard_wg-hesland.yml new file mode 100644 index 0000000..6755799 --- /dev/null +++ b/ansible/group_vars/all/wireguard_wg-hesland.yml @@ -0,0 +1,11 @@ +wireguard-wg-hesland: + if: wg-hesland + ipv4_prefix: 24 + hosts: + webgateway: + endpoint: hesland.trygvis.io + listen_port: 55139 + conflatorio: + ipv4: 10.0.212.2 + arius: + ipv4: 10.0.212.4 diff --git a/ansible/inventory b/ansible/inventory index 08e0fa0..e22f279 100644 --- a/ansible/inventory +++ b/ansible/inventory @@ -130,4 +130,9 @@ all: android-trygvis: knot: + wireguard_hesland: + hosts: + arius: + conflatorio: + # vim: set filetype=yaml: diff --git a/ansible/wireguard.yml b/ansible/wireguard.yml index 3668f02..f22445d 100644 --- a/ansible/wireguard.yml +++ b/ansible/wireguard.yml @@ -22,3 +22,12 @@ roles: - role: wireguard wireguard__name: wireguard-wg1 + +- hosts: + - wireguard_hesland + tags: wg-hesland + roles: + - role: wireguard + wireguard__name: wireguard-wg-hesland + vars: + wg_net: "{{ hostvars[ansible_hostname][wireguard__name] }}" -- cgit v1.2.3