From bafe762ac01d16904c18404283027e426e19bc73 Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 3 Feb 2021 16:35:48 +0100 Subject: Code reorganization. Moving main code to src, keeping modules in modules/ --- .../acme-wireguard/host_vars/acme-1/wireguard.yml | 15 +++++++++++++++ .../acme-wireguard/host_vars/acme-2/wireguard.yml | 15 +++++++++++++++ .../acme-wireguard/host_vars/acme-3/wireguard.yml | 15 +++++++++++++++ example/acme-wireguard/host_vars/ws-1/wireguard.yml | 20 ++++++++++++++++++++ example/acme-wireguard/host_vars/ws-2/wireguard.yml | 20 ++++++++++++++++++++ example/acme-wireguard/inventory.yml | 21 +++++++++++++++++++++ example/acme-wireguard/wireguard-vpn0.yml | 7 +++++++ 7 files changed, 113 insertions(+) create mode 100644 example/acme-wireguard/host_vars/acme-1/wireguard.yml create mode 100644 example/acme-wireguard/host_vars/acme-2/wireguard.yml create mode 100644 example/acme-wireguard/host_vars/acme-3/wireguard.yml create mode 100644 example/acme-wireguard/host_vars/ws-1/wireguard.yml create mode 100644 example/acme-wireguard/host_vars/ws-2/wireguard.yml create mode 100644 example/acme-wireguard/inventory.yml create mode 100644 example/acme-wireguard/wireguard-vpn0.yml (limited to 'example/acme-wireguard') 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 -- cgit v1.2.3