summaryrefslogtreecommitdiff
path: root/example/acme-wireguard
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-02-03 16:35:48 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-02-03 16:35:48 +0100
commitbafe762ac01d16904c18404283027e426e19bc73 (patch)
treec22688ad186f5ce635f525704c5035f91b983b68 /example/acme-wireguard
parent91abd0b04320a9c9d932df195aca38c1cacfcc5a (diff)
downloadrules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.gz
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.bz2
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.xz
rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.zip
Code reorganization.
Moving main code to src, keeping modules in modules/
Diffstat (limited to 'example/acme-wireguard')
-rw-r--r--example/acme-wireguard/host_vars/acme-1/wireguard.yml15
-rw-r--r--example/acme-wireguard/host_vars/acme-2/wireguard.yml15
-rw-r--r--example/acme-wireguard/host_vars/acme-3/wireguard.yml15
-rw-r--r--example/acme-wireguard/host_vars/ws-1/wireguard.yml20
-rw-r--r--example/acme-wireguard/host_vars/ws-2/wireguard.yml20
-rw-r--r--example/acme-wireguard/inventory.yml21
-rw-r--r--example/acme-wireguard/wireguard-vpn0.yml7
7 files changed, 113 insertions, 0 deletions
diff --git a/example/acme-wireguard/host_vars/acme-1/wireguard.yml b/example/acme-wireguard/host_vars/acme-1/wireguard.yml
new file mode 100644
index 0000000..3c71e52
--- /dev/null
+++ b/example/acme-wireguard/host_vars/acme-1/wireguard.yml
@@ -0,0 +1,15 @@
+# Generated
+wireguard_port: 53476
+link_address: 192.168.10.3
+network_cidr: 10.55.255.0/24
+wireguard_peers:
+ acme-2:
+ public_address: acme-2.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.4
+ network: 10.55.254.0/24
+ acme-3:
+ public_address: acme-3.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.5
+ network: 10.55.253.0/24
diff --git a/example/acme-wireguard/host_vars/acme-2/wireguard.yml b/example/acme-wireguard/host_vars/acme-2/wireguard.yml
new file mode 100644
index 0000000..d7e4219
--- /dev/null
+++ b/example/acme-wireguard/host_vars/acme-2/wireguard.yml
@@ -0,0 +1,15 @@
+# Generated
+wireguard_port: 53476
+link_address: 192.168.10.4
+network_cidr: 10.55.254.0/24
+wireguard_peers:
+ acme-1:
+ public_address: acme-1.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.3
+ network: 10.55.255.0/24
+ acme-3:
+ public_address: acme-3.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.5
+ network: 10.55.253.0/24
diff --git a/example/acme-wireguard/host_vars/acme-3/wireguard.yml b/example/acme-wireguard/host_vars/acme-3/wireguard.yml
new file mode 100644
index 0000000..7d7fa76
--- /dev/null
+++ b/example/acme-wireguard/host_vars/acme-3/wireguard.yml
@@ -0,0 +1,15 @@
+# Generated
+wireguard_port: 53476
+link_address: 192.168.10.5
+network_cidr: 10.55.253.0/24
+wireguard_peers:
+ acme-1:
+ public_address: acme-1.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.3
+ network: 10.55.255.0/24
+ acme-2:
+ public_address: acme-2.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.4
+ network: 10.55.254.0/24
diff --git a/example/acme-wireguard/host_vars/ws-1/wireguard.yml b/example/acme-wireguard/host_vars/ws-1/wireguard.yml
new file mode 100644
index 0000000..0372db8
--- /dev/null
+++ b/example/acme-wireguard/host_vars/ws-1/wireguard.yml
@@ -0,0 +1,20 @@
+# Generated
+wireguard_port: 53476
+link_address: 192.168.10.6
+network_cidr: 10.55.252.0/24
+wireguard_peers:
+ acme-1:
+ public_address: acme-1.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.3
+ network: 10.55.255.0/24
+ acme-2:
+ public_address: acme-2.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.4
+ network: 10.55.254.0/24
+ acme-3:
+ public_address: acme-3.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.5
+ network: 10.55.253.0/24
diff --git a/example/acme-wireguard/host_vars/ws-2/wireguard.yml b/example/acme-wireguard/host_vars/ws-2/wireguard.yml
new file mode 100644
index 0000000..133bd66
--- /dev/null
+++ b/example/acme-wireguard/host_vars/ws-2/wireguard.yml
@@ -0,0 +1,20 @@
+# Generated
+wireguard_port: 53476
+link_address: 192.168.10.7
+network_cidr: 10.55.251.0/24
+wireguard_peers:
+ acme-1:
+ public_address: acme-1.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.3
+ network: 10.55.255.0/24
+ acme-2:
+ public_address: acme-2.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.4
+ network: 10.55.254.0/24
+ acme-3:
+ public_address: acme-3.machine.acme.com
+ public_port: 53476
+ gateway: 192.168.10.5
+ network: 10.55.253.0/24
diff --git a/example/acme-wireguard/inventory.yml b/example/acme-wireguard/inventory.yml
new file mode 100644
index 0000000..de54c64
--- /dev/null
+++ b/example/acme-wireguard/inventory.yml
@@ -0,0 +1,21 @@
+# Generated
+all:
+ hosts:
+ acme-1:
+ ansible_host: acme-1.machine.acme.com
+ acme-2:
+ ansible_host: acme-2.machine.acme.com
+ acme-3:
+ ansible_host: acme-3.machine.acme.com
+ ws-1:
+ ansible_host:
+ ws-2:
+ ansible_host:
+ children:
+ wireguard_vpn0:
+ hosts:
+ acme-1:
+ acme-2:
+ acme-3:
+ ws-1:
+ ws-2:
diff --git a/example/acme-wireguard/wireguard-vpn0.yml b/example/acme-wireguard/wireguard-vpn0.yml
new file mode 100644
index 0000000..a1309e2
--- /dev/null
+++ b/example/acme-wireguard/wireguard-vpn0.yml
@@ -0,0 +1,7 @@
+- hosts: wireguard_vpn0
+ vars:
+ wireguard_if: vpn0
+ tasks:
+ - name: wireguard
+ import_role:
+ name: wireguard