aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-14 22:10:59 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-14 22:10:59 +0100
commit6c9bf1082dd48206a2222fa3a0ac0c635a0960e3 (patch)
tree8e75f8c9ead6ceab30a434d5b69db51726767f7b
parent744fb2e54bc4517c965509cd06de11bc58d6ffe2 (diff)
downloadinfra-6c9bf1082dd48206a2222fa3a0ac0c635a0960e3.tar.gz
infra-6c9bf1082dd48206a2222fa3a0ac0c635a0960e3.tar.bz2
infra-6c9bf1082dd48206a2222fa3a0ac0c635a0960e3.tar.xz
infra-6c9bf1082dd48206a2222fa3a0ac0c635a0960e3.zip
arius/conflatorio: adding hesland VPN.
-rw-r--r--ansible/files/arius/etc/wireguard/public-wg-hesland.key1
-rw-r--r--ansible/files/webgateway/etc/wireguard/public-wg-hesland.key1
-rw-r--r--ansible/group_vars/all/wireguard_wg-hesland.yml11
-rw-r--r--ansible/inventory5
-rw-r--r--ansible/wireguard.yml9
5 files changed, 27 insertions, 0 deletions
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] }}"