add nomad playbook
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
vincent 2022-03-13 16:03:12 +01:00
parent 03904f16aa
commit 0773e8d767
5 changed files with 23 additions and 2 deletions

View File

@ -50,3 +50,4 @@ mount_table:
provissionning_UEFI_Enable: True provissionning_UEFI_Enable: True
sssd_configure: False sssd_configure: False
system_arch_local_mirror: system_arch_local_mirror:
nomad_datacenter: hetzner

View File

@ -79,3 +79,5 @@ keystodeploy:
- name: zen-pc - name: zen-pc
user: "{{user.name}}" 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 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

View File

@ -58,8 +58,15 @@ keystodeploy:
pihole_admin_password: "{{ vault_pihole_admin }}" pihole_admin_password: "{{ vault_pihole_admin }}"
pihole_local_resolver: 192.168.1.10 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: true
chisel_server_port: 9090 chisel_server_port: 9090
chisel_server_backend: https://www.{{domain.name}} chisel_server_backend: https://www.{{domain.name}}
@ -74,3 +81,5 @@ system_user:
- name: drone-deploy - name: drone-deploy
home: /home/drone-deploy home: /home/drone-deploy
shell: /bin/bash shell: /bin/bash
nomad_datacenter: homelab

View File

@ -25,3 +25,4 @@ consul_client_addr: "127.0.0.1 10.0.0.1"
consul_bind_address: "10.0.0.1" consul_bind_address: "10.0.0.1"
consul_ui: False consul_ui: False
consul_iface: "wg0" consul_iface: "wg0"
nomads_bind_addr: "10.0.0.1"

8
playbooks/nomad.yml Normal file
View File

@ -0,0 +1,8 @@
---
- hosts:
- VPS
- server
- dhcp
roles:
- role: ansible-nomad
become: true