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/ --- .../src/main/resources/templates/wireguard/ansible-host.j2 | 12 ------------ .../src/main/resources/templates/wireguard/ansible.j2 | 7 ------- .../src/main/resources/templates/wireguard/inventory.j2 | 13 ------------- 3 files changed, 32 deletions(-) delete mode 100644 module/ri-wireguard/src/main/resources/templates/wireguard/ansible-host.j2 delete mode 100644 module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2 delete mode 100644 module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 (limited to 'module/ri-wireguard/src/main/resources/templates/wireguard') diff --git a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible-host.j2 b/module/ri-wireguard/src/main/resources/templates/wireguard/ansible-host.j2 deleted file mode 100644 index 6cb3a05..0000000 --- a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible-host.j2 +++ /dev/null @@ -1,12 +0,0 @@ -# Generated -wireguard_port: {{ host.publicPort }} -link_address: {{ host.ip }} -network_cidr: {{ host.networkCidr }} -wireguard_peers: -{%- for peer in peers %} - {{ peer.machine.name }}: - public_address: {{ peer.publicName }} - public_port: {{ peer.publicPort }} - gateway: {{ peer.ip }} - network: {{ peer.networkCidr }} -{%- endfor %} diff --git a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2 b/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2 deleted file mode 100644 index ad4d034..0000000 --- a/module/ri-wireguard/src/main/resources/templates/wireguard/ansible.j2 +++ /dev/null @@ -1,7 +0,0 @@ -- hosts: wireguard_{{ net.name }} - vars: - wireguard_if: {{ net.name }} - tasks: - - name: wireguard - import_role: - name: wireguard diff --git a/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 b/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 deleted file mode 100644 index 64f3b5b..0000000 --- a/module/ri-wireguard/src/main/resources/templates/wireguard/inventory.j2 +++ /dev/null @@ -1,13 +0,0 @@ -# Generated -all: - hosts: - {%- for host in hosts %} - {{ host.getName() }}: - ansible_host: {{ host.getFqdn() }} - {%- endfor %} - children: - wireguard_{{ net.name }}: - hosts: -{%- for host in hosts %} - {{ host.getName() }}: -{%- endfor %} -- cgit v1.2.3