From 0773e8d767201e7757c8b1a8c7d1706ec0f443d2 Mon Sep 17 00:00:00 2001 From: vincent Date: Sun, 13 Mar 2022 16:03:12 +0100 Subject: [PATCH] add nomad playbook --- group_vars/VPS | 1 + group_vars/dhcp | 2 ++ group_vars/server/server | 13 +++++++++++-- host_vars/corwin | 1 + playbooks/nomad.yml | 8 ++++++++ 5 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 playbooks/nomad.yml diff --git a/group_vars/VPS b/group_vars/VPS index 16693eb..f1cc25d 100644 --- a/group_vars/VPS +++ b/group_vars/VPS @@ -50,3 +50,4 @@ mount_table: provissionning_UEFI_Enable: True sssd_configure: False system_arch_local_mirror: +nomad_datacenter: hetzner diff --git a/group_vars/dhcp b/group_vars/dhcp index 512111c..b3030ce 100644 --- a/group_vars/dhcp +++ b/group_vars/dhcp @@ -79,3 +79,5 @@ keystodeploy: - name: zen-pc user: "{{user.name}}" sshkey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCYHkEIa38p3e4+m/LScHm8Ei7H2X/pDksjVAzoJ4fHr8oXc6DKkC8SWwMnh3L4WzWBhfTbzwUgFTNpsxhp/UyJf+fdzmzetlbVlYSuA6yWuSmgMeFbXFImhZ+Sn3i59hLeqAAyrkQLjba2waehdEsuOQ/AGoDbMYm38Xf9Wka/1YIeUPE4gLeLvymRnGw7BSug6Unycy52WlFAquollObOvc7tNiX0uLDh81Dp0KZhqWRs75hfmQ9du4g4uNhFLiF11hOGNgj3PWV+nWe8GWNQYVUBChWX1dsP8ct/ahG9IFXSPEaFD1IZeFp29u2ln3mgKkBtcRTRe1e3CLQqiRsUq2aixVFbSgFMFgGSUiNGNqKR4f9DeyJrYBplSj6HXjWoBny4Wm8+yfk8qR2RtQpS6AUu81xtKnXOaj9Q5VZO3kVF0U3EXHAZutTYDj9mDlhLSBS7x7hmrkRBbIy7adSx9Gx5Ck3/RllqG6KD+LdJa4I0pUTRNetpLpYDeZpwjnDP1r7udaSQMyRMH5YKLzhtHqIV/imn9QO4KCxNxTgwxt9ho6HDvlDGERCxm+yeHUu3CPyq2ZGSF5HHsYTGUtYvQw4JfQyw/5DrZ7IIdU1e7ZuaE3h/NvFgKJPVTP52nmUtIW7pIOkHpn9mddjm/oKMayOzMspLn9HLFVbqi7A5Xw== vincent@zen-pc + +nomad_datacenter: homelab diff --git a/group_vars/server/server b/group_vars/server/server index 306aa77..7568a80 100644 --- a/group_vars/server/server +++ b/group_vars/server/server @@ -58,8 +58,15 @@ keystodeploy: pihole_admin_password: "{{ vault_pihole_admin }}" pihole_local_resolver: 192.168.1.10 -pihole_local_domain: "{{ domain.name }}" - +pihole_local_domain: + - domain: local.lan + resolver: "{{ pihole_local_resolver }}" + - domain: "1.168.192.in-addr.arpa" + resolver: "{{ pihole_local_resolver }}" + - domain: "consul" + resolver: "172.17.0.1#8600" + - domain: "{{ domain.name }}" + resolver: "{{ pihole_local_resolver }}" chisel_server: true chisel_server_port: 9090 chisel_server_backend: https://www.{{domain.name}} @@ -74,3 +81,5 @@ system_user: - name: drone-deploy home: /home/drone-deploy shell: /bin/bash + +nomad_datacenter: homelab diff --git a/host_vars/corwin b/host_vars/corwin index 54e4ddf..5f05c19 100644 --- a/host_vars/corwin +++ b/host_vars/corwin @@ -25,3 +25,4 @@ consul_client_addr: "127.0.0.1 10.0.0.1" consul_bind_address: "10.0.0.1" consul_ui: False consul_iface: "wg0" +nomads_bind_addr: "10.0.0.1" diff --git a/playbooks/nomad.yml b/playbooks/nomad.yml new file mode 100644 index 0000000..4b73e23 --- /dev/null +++ b/playbooks/nomad.yml @@ -0,0 +1,8 @@ +--- +- hosts: + - VPS + - server + - dhcp + roles: + - role: ansible-nomad + become: true