From 971af0a4b9a01b35d2d41673a70cd2d3e0c096ae Mon Sep 17 00:00:00 2001 From: uvok cheetah Date: Sun, 24 Mar 2024 19:23:11 +0100 Subject: Use directory-based approach letting me exclude sensitive parts --- .gitignore | 4 ++++ group_vars/routing | 1 - group_vars/routing/public | 1 + host_vars/firstroot | 11 ----------- host_vars/firstroot/public | 11 +++++++++++ host_vars/hetzner | 8 -------- host_vars/hetzner/public | 8 ++++++++ 7 files changed, 24 insertions(+), 20 deletions(-) delete mode 100644 group_vars/routing create mode 100644 group_vars/routing/public delete mode 100644 host_vars/firstroot create mode 100644 host_vars/firstroot/public delete mode 100644 host_vars/hetzner create mode 100644 host_vars/hetzner/public diff --git a/.gitignore b/.gitignore index 63dc644..95a53f2 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,7 @@ *.swp /venv/ +# files named private +private +private.yaml +private.yml diff --git a/group_vars/routing b/group_vars/routing deleted file mode 100644 index a03e94e..0000000 --- a/group_vars/routing +++ /dev/null @@ -1 +0,0 @@ -ansible_user: root diff --git a/group_vars/routing/public b/group_vars/routing/public new file mode 100644 index 0000000..a03e94e --- /dev/null +++ b/group_vars/routing/public @@ -0,0 +1 @@ +ansible_user: root diff --git a/host_vars/firstroot b/host_vars/firstroot deleted file mode 100644 index 7bec76d..0000000 --- a/host_vars/firstroot +++ /dev/null @@ -1,11 +0,0 @@ -tinc: - configure: true - name: firstroot - connections: [hetzner] - address: - - fe80::10/64 - - 10.2.0.10/24 - listen_on: any - extra_up: - - sysctl -w net.ipv4.conf.${INTERFACE}.forwarding=1 - - sysctl -w net.ipv6.conf.${INTERFACE}.forwarding=1 diff --git a/host_vars/firstroot/public b/host_vars/firstroot/public new file mode 100644 index 0000000..7bec76d --- /dev/null +++ b/host_vars/firstroot/public @@ -0,0 +1,11 @@ +tinc: + configure: true + name: firstroot + connections: [hetzner] + address: + - fe80::10/64 + - 10.2.0.10/24 + listen_on: any + extra_up: + - sysctl -w net.ipv4.conf.${INTERFACE}.forwarding=1 + - sysctl -w net.ipv6.conf.${INTERFACE}.forwarding=1 diff --git a/host_vars/hetzner b/host_vars/hetzner deleted file mode 100644 index 02b9c22..0000000 --- a/host_vars/hetzner +++ /dev/null @@ -1,8 +0,0 @@ -tinc: - configure: true - name: hetzner - connections: [netcup] - address: - - fe80::1/64 - - 10.2.0.1/24 - listen_on: any diff --git a/host_vars/hetzner/public b/host_vars/hetzner/public new file mode 100644 index 0000000..02b9c22 --- /dev/null +++ b/host_vars/hetzner/public @@ -0,0 +1,8 @@ +tinc: + configure: true + name: hetzner + connections: [netcup] + address: + - fe80::1/64 + - 10.2.0.1/24 + listen_on: any -- cgit v1.2.3