summaryrefslogtreecommitdiff
path: root/j2/wireguard
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-26 21:06:24 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-26 21:06:24 +0100
commit0ae7ecd47fd76921e8e1137739497578fe703354 (patch)
treee06a9b45b5e1e7a8922cdba11b1a39188ddeeee2 /j2/wireguard
parent71010ae3fefbe897227343e44573385df9cd60cc (diff)
downloadrules-sandbox-0ae7ecd47fd76921e8e1137739497578fe703354.tar.gz
rules-sandbox-0ae7ecd47fd76921e8e1137739497578fe703354.tar.bz2
rules-sandbox-0ae7ecd47fd76921e8e1137739497578fe703354.tar.xz
rules-sandbox-0ae7ecd47fd76921e8e1137739497578fe703354.zip
Better main().
* Moving templates into their respective modules. * Supporting export type-based filtering. Probably not perfect.
Diffstat (limited to 'j2/wireguard')
-rw-r--r--j2/wireguard/ansible-host.j28
-rw-r--r--j2/wireguard/ansible.j26
-rw-r--r--j2/wireguard/inventory.j27
3 files changed, 0 insertions, 21 deletions
diff --git a/j2/wireguard/ansible-host.j2 b/j2/wireguard/ansible-host.j2
deleted file mode 100644
index a3c8c40..0000000
--- a/j2/wireguard/ansible-host.j2
+++ /dev/null
@@ -1,8 +0,0 @@
-# Generated
-link_address: {{ host.ip }}
-network_cidr: {{ host.networkCidr }}
-wireguard_peers:
- {{ host.machine.name }}:
-{%- for peer in peers %}
- - {{ peer.fqdn }}
-{%- endfor %}
diff --git a/j2/wireguard/ansible.j2 b/j2/wireguard/ansible.j2
deleted file mode 100644
index 82c0ca0..0000000
--- a/j2/wireguard/ansible.j2
+++ /dev/null
@@ -1,6 +0,0 @@
-- hosts: {{ net.name }}
- roles:
- - name: wireguard
- wireguard_if: {{ net.name }}
- wireguard_listen_port: 45364
- wireguard_address4: "{{ '{{' }} link_addresses[ansible_hostname] }}"
diff --git a/j2/wireguard/inventory.j2 b/j2/wireguard/inventory.j2
deleted file mode 100644
index 0924bb2..0000000
--- a/j2/wireguard/inventory.j2
+++ /dev/null
@@ -1,7 +0,0 @@
-# Generated
-all:
- hosts:
- {%- for host in hosts %}
- {{ host.getName() }}:
- ansible_host: {{ host.getFqdn() }}
- {%- endfor %}