diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:35:48 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:35:48 +0100 |
commit | bafe762ac01d16904c18404283027e426e19bc73 (patch) | |
tree | c22688ad186f5ce635f525704c5035f91b983b68 /example/acme-wireguard | |
parent | 91abd0b04320a9c9d932df195aca38c1cacfcc5a (diff) | |
download | rules-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.yml | 15 | ||||
-rw-r--r-- | example/acme-wireguard/host_vars/acme-2/wireguard.yml | 15 | ||||
-rw-r--r-- | example/acme-wireguard/host_vars/acme-3/wireguard.yml | 15 | ||||
-rw-r--r-- | example/acme-wireguard/host_vars/ws-1/wireguard.yml | 20 | ||||
-rw-r--r-- | example/acme-wireguard/host_vars/ws-2/wireguard.yml | 20 | ||||
-rw-r--r-- | example/acme-wireguard/inventory.yml | 21 | ||||
-rw-r--r-- | example/acme-wireguard/wireguard-vpn0.yml | 7 |
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 |