25 Commits

Author SHA1 Message Date
d69770b776 Avoid writing hosts if empty 2023-09-01 15:42:25 -04:00
9438ab46d7 Add bullseye support 2023-09-01 15:42:25 -04:00
dc83f91bd8 Add directory creation to backup script 2023-09-01 15:42:25 -04:00
5466df7065 Add PostgreSQL to daily backup script 2023-09-01 15:42:25 -04:00
7c7ca4a229 Allow inter-cluster orphan NTP sync
Due to the requirement of Ceph to have all peer nodes tightly
synchronized with each other to come online, PVC nodes need a way to
synchronize to each other even in the absence of an external time
reference. This is especially prevalent if a set of nodes are left
offline for an extended period (>1-2 weeks), since their hardware clocks
will drift. If the resulting Internet connectivity is then dependent on
a VM, this will cause a catch-22 and the cluster will not properly
start.

This configuration will accomplish that - if no suitable >6 stratum
peers are found, the hosts will enter orphan mode. Since they are now
all configured as "peers" with each other, they will collectively decide
on one of them to become the source and sync to it. A local stratum 10
fudge is added so that at least one of the nodes can become this source.

While this is not an ideal use of NTP, it is by far the cleanest
solution to this problem, and does not impact normal functionality when
the two configured stratum-2 servers are reachable.
2023-09-01 15:42:25 -04:00
e53342474c Remove GRUB config from base role
This is not actually ideal.
2023-09-01 15:42:25 -04:00
6903627150 Add additional items to base role
Backups, GRUB configuration, and IPMI configuration.
2023-09-01 15:42:25 -04:00
c96ad603b0 Fix sudoers to use conditional deploy_username 2023-09-01 15:42:25 -04:00
29363ebf80 Allow configurable fail2ban IPs 2023-09-01 15:42:25 -04:00
4dc5ebdba0 Move to more dynamic apt configs
Allow specifying repository URLs in the group_vars, and add
release-specific template files to support future version changes.
2023-09-01 15:42:25 -04:00
a4be011884 Add local domain to resolver config 2023-09-01 15:42:25 -04:00
075ce8ea22 Add PVC status MOTD script 2023-09-01 15:42:24 -04:00
a8419be587 Use generic Debian repos and PVC component 2023-09-01 15:42:24 -04:00
777a4693a1 Improve SSH configuration for nodes
Ensure hostbased auth works with configs, remove erroneous old
conditional for authtypes, remove obsolete config option.
2023-09-01 15:42:24 -04:00
88209a2b70 Use Google DNS instead of Cloudflare
For some reason Cloudflare works in fewer places than Google, so just
use it instead.
2023-09-01 15:42:24 -04:00
fbbf5ffe09 Use cluster_group variable for paths
Instead of trying to automagic this group out of the Ansible hostvars,
just make it explicitly defined in the group_vars to avoid any
confusion.
2023-09-01 15:42:23 -04:00
7e653d52c3 Include upstream and short names in hosts 2023-09-01 15:42:23 -04:00
7e74ce2ede Add support for arbitrary /etc/hosts entries 2023-09-01 15:42:21 -04:00
675aa865de Allow sysrc triggers in nodes 2023-09-01 15:42:21 -04:00
c9393ba957 Add templating of network interfaces
Closes #1
2023-09-01 15:42:21 -04:00
1762d74aa8 Remove BLSE references 2023-09-01 15:42:20 -04:00
e04e12f46f Get NTP from real servers 2023-09-01 15:42:19 -04:00
9bb513e695 Add hostsnames properly 2023-09-01 15:42:19 -04:00
2650014ec1 Fix up some weird issues 2023-09-01 15:42:19 -04:00
6dfaf433dc Initial commit of PVC Ansible role 2023-09-01 15:42:19 -04:00