Commit Graph

81 Commits

Author SHA1 Message Date
IamTheFij ce09177479 Add missing role requirements file
This uses updated fork of ansible-consul
2022-06-23 20:13:17 -07:00
IamTheFij 13e9eac407 Deploy traefik one at a time with autorevert 2022-06-23 20:12:30 -07:00
IamTheFij d40d585358 Install consul dns forwarding 2022-06-23 20:12:09 -07:00
IamTheFij 0bfdddf3ee Install consul from repo 2022-06-23 20:11:48 -07:00
IamTheFij 617d4ae676 Make blocky config a bit more stable by removing templating based on whami 2022-06-23 20:11:28 -07:00
IamTheFij 3d6b405ab6 Fix blocky upstream tcp for quad9 2022-06-23 20:11:09 -07:00
IamTheFij 2f4d90abdc Auto revert broken blocky
Also enable traefik
2022-06-23 20:10:36 -07:00
IamTheFij ffdfdeadfb Add Consul lookup for ads dns allowlist 2022-06-23 13:36:06 -07:00
IamTheFij fc2db88276 Add some more upstream dns options
Should pick one later
2022-06-23 13:34:08 -07:00
IamTheFij eb066f5d98 Increase priority of Traefik 2022-06-23 09:51:42 -07:00
IamTheFij e5b61d5307 Update Nomad 2022-06-23 09:51:21 -07:00
IamTheFij 6b14507ca6 Generate blocky host mapping from Consul kv 2022-06-23 09:51:09 -07:00
IamTheFij 5d2301c791 Update blocky one instance at a time
Avoids dns going down with all instances updating at once
2022-06-23 09:50:23 -07:00
IamTheFij d7fa57864f Deploy backup jobs to all hosts and dynamically determine jobs per node 2022-06-23 09:49:57 -07:00
IamTheFij 9ab300c225 Remove csi deployment 2022-06-23 09:49:03 -07:00
IamTheFij 520d7c56b9 Move databases to a single module 2022-06-23 09:48:01 -07:00
IamTheFij a02f1a2317 Make traefik a system service
For this to work, will need to put TLS certs in Vault
2022-06-17 15:20:43 -07:00
IamTheFij ce18650e1f Add base hostname to consul in Playbook 2022-06-17 15:19:43 -07:00
IamTheFij 16b9440e12 WIP: Add democratic-csi storage plugin 2022-06-17 15:19:19 -07:00
IamTheFij 252c9b4111 Make nextcloud backup a non-sidecar task
Avoids restarting whole group when if it fails
2022-06-17 15:16:45 -07:00
IamTheFij 8cd2abc6b8 Remove some unecessary traefik configs from tasks 2022-06-17 15:15:37 -07:00
IamTheFij 049364df23 Make order of host configs match playbook order 2022-06-17 15:14:55 -07:00
IamTheFij c41babe346 Use new host name in terraform consul address 2022-05-24 20:11:57 -07:00
IamTheFij 6cd7bae240 Use new token variable name after bootstrap 2022-05-24 20:11:41 -07:00
IamTheFij de4c96b104 Add autopilot 2022-05-24 20:11:18 -07:00
IamTheFij f50cb98d30 Add docker install 2022-05-24 20:11:07 -07:00
IamTheFij 1995434140 Auto initialize vault 2022-05-24 20:10:47 -07:00
IamTheFij d6407d25a0 Wait until mysql is deployed before continuing
Otherwise dependent jobs will fail and take up time restarting
2022-05-24 20:10:26 -07:00
IamTheFij 8eb7a58dfd Remove unused playbook 2022-05-24 20:09:45 -07:00
IamTheFij e677259a1d Switch to a 3 node cluster for better resiliance 2022-05-24 20:09:22 -07:00
IamTheFij 1352eeb3e8 Fix venv detection for ansible cluster target
This fixes the installation of the consul python library
2022-05-24 20:07:52 -07:00
IamTheFij 5f9a04fa5d Make redis optional for blocky to help with resliliance to a single host failing 2022-05-19 16:54:16 -07:00
IamTheFij 38597a7eda Dynamically add dns routes to traefik instances to blocky 2022-05-19 16:53:56 -07:00
IamTheFij 719c1b62d1 Add dedicated backup module and jobs
Possible alternative to backups deployed with each job
2022-05-18 14:23:46 -07:00
IamTheFij fb9e9017ff Fix prom scraping 2022-05-18 14:22:52 -07:00
IamTheFij 8d3d0d0224 Add smarttv block list to default on blocky 2022-05-18 14:22:35 -07:00
IamTheFij f0eacea11f Default nomad cluster to ansible 2022-05-18 14:22:21 -07:00
IamTheFij 1b8c2d6bcf nomad: Run block on all hosts 2022-05-18 11:29:00 -07:00
IamTheFij 96f213a535 Bootstrap kubernetes 2022-05-17 10:43:29 -07:00
IamTheFij 0a003c39b1 WIP: Vault db 2022-05-12 19:27:52 -07:00
IamTheFij b13c5a1388 Bind mysql to loopback 2022-05-09 21:45:08 -07:00
IamTheFij 3b8f9734ac Add prom ports to nextcloud backup 2022-05-09 21:44:26 -07:00
IamTheFij 2ed2079b45 Use consul http port in traefik 2022-04-15 12:25:15 -07:00
IamTheFij ba1b5166b9 Build traefik static config better when services aren't found 2022-04-15 12:13:00 -07:00
IamTheFij 630a85a2f2 no log for some more sensitive info 2022-04-15 12:12:28 -07:00
IamTheFij 420e67b68b WIP nomad vault db integration 2022-04-15 12:12:15 -07:00
IamTheFij af743820ec Add nextcloud backup job 2022-04-15 12:11:41 -07:00
IamTheFij f1316367de Lint, format, lock 2022-04-13 14:02:42 -07:00
IamTheFij 9e97cd5d49 remove useless blank line 2022-04-05 09:44:40 -07:00
IamTheFij 96ca3270fa Create a lot more host volumes
Some are NFS volumes and present on all devices
2022-04-04 22:20:19 -07:00