Joshua Boniface
e15e2dfaab
Remove erroneous netmask from floating IP defaults
2023-11-04 12:51:07 -04:00
Joshua Boniface
103e9fe147
Add restart overrides for ceph-mgr
...
Needed because ceph-mgr seems to crash frequently under Debian 12 when
adding or removing OSDs. The default settings do not restart it
properly, so this override does.
2023-11-03 14:25:31 -04:00
Joshua Boniface
15a5b581f1
Disable failing socket services
2023-11-03 12:10:19 -04:00
Joshua Boniface
90417621d7
Add autobackup support to pvc-ansible
2023-10-27 02:08:20 -04:00
Joshua Boniface
17f819ea3f
Don't set "latest" for libvirt packages
...
Avoids errors during runs before upgrades.
2023-10-24 10:41:47 -04:00
Joshua Boniface
c11f896a60
Fix zk_status check target znode
2023-10-22 00:42:43 -04:00
Joshua Boniface
f4bbdb7c86
Use full path for uuidgen
2023-09-29 03:00:53 -04:00
Joshua Boniface
83636388f0
Add configurable monitoring interval
2023-09-15 22:31:16 -04:00
Joshua Boniface
8ebb8a8339
Disable autoscale via command
...
As per [1] the ceph.conf option does not work properly and must be set this way.
[1] https://stackoverflow.com/questions/63853436/ceph-octopus-setting-autoscale-mode-from-ceph-conf-file
2023-09-02 01:59:47 -04:00
Joshua Boniface
a10b3e8d4a
Lower default pgs and disable autoscale
2023-09-01 23:54:10 -04:00
Joshua Boniface
cf426408f2
Restore original setting
2023-09-01 16:18:20 -04:00
Joshua Boniface
3680717daa
Remove extra restarts on bootstrap
2023-09-01 15:42:30 -04:00
Joshua Boniface
1f4cd92d63
Fix bad calls to node primary
2023-09-01 15:42:30 -04:00
Joshua Boniface
6da9956811
Fix delegate_to
2023-09-01 15:42:30 -04:00
Joshua Boniface
fb60093750
Ignore errors in Patroni restart handler
2023-09-01 15:42:30 -04:00
Joshua Boniface
7b061966ad
Ignore errors in Patroni
...
Required during upgrades as the service may be masked.
2023-09-01 15:42:30 -04:00
Joshua Boniface
1e497413e8
Remove extra whitespace
2023-09-01 15:42:30 -04:00
Joshua Boniface
64ce09122d
Add additional primary node switch
2023-09-01 15:42:30 -04:00
Joshua Boniface
353399a407
Ensure core pg_hba entries are present
2023-09-01 15:42:30 -04:00
Joshua Boniface
b21778f117
Fix Patroni upgrade and D12 support
2023-09-01 15:42:30 -04:00
Joshua Boniface
9411679004
Fix reboot
2023-09-01 15:42:30 -04:00
Joshua Boniface
7c8b6919fe
Add Debian 12 Patroni config
2023-09-01 15:42:30 -04:00
Joshua Boniface
2ba8f1cfc3
Add retries to all apt commands
2023-09-01 15:42:30 -04:00
Joshua Boniface
d54844746e
Ignore errors enabling vhostmd
...
Seems to cause issues in bookworm.
2023-09-01 15:42:30 -04:00
Joshua Boniface
71d956dab7
Add final pvcnoded restart
2023-09-01 15:42:30 -04:00
Joshua Boniface
f79d1da5be
Update other commands to use new CLI format
2023-09-01 15:42:30 -04:00
Joshua Boniface
0d3e525f12
Update link to one level higher
2023-09-01 15:42:29 -04:00
Joshua Boniface
017e1405ed
Use debian_version custom fact
2023-09-01 15:42:29 -04:00
Joshua Boniface
f8ef2602bc
Revert "Fix symlink to be one level up"
...
This reverts commit 7693b2d78f
.
2023-09-01 15:42:29 -04:00
Joshua Boniface
dcaa0228b7
Fix symlink to be one level up
2023-09-01 15:42:29 -04:00
Joshua Boniface
cab4deac26
Add configuration field for plugins
2023-09-01 15:42:29 -04:00
Joshua Boniface
c2b576334f
Adjust plugin log config field for 0.9.62
2023-09-01 15:42:29 -04:00
Joshua Boniface
561ecb5c61
Adjust name of bootstrap trigger variable
...
The PVC bootstrap framework overrides this variable and wreaks havoc on
it. Instead adjust our side so that it looks for do_bootstrap instead.
2023-09-01 15:42:29 -04:00
Joshua Boniface
5a48ec4d79
Ensure CPU tuning is only applied on Debian 11+
2023-09-01 15:42:29 -04:00
Joshua Boniface
07d75573d6
Add updated tuning configuration
...
Uses a much nicer CPU tuning configuration, leveraging systemd's
AllowedCPUs and CPUAffinity options within a set of slices (some
default, some custom).
Configuration is also greatly simplified versus the previous
implementation, simply asking for a number of CPUS for both the system
and OSDs, and calculating everything else that is required.
Also switches (back) to the v2 unified cgroup hierarchy by default as
required by the systemd AllowedCPUs directive.
2023-09-01 15:42:29 -04:00
Joshua Boniface
fa4f1cff0f
Adjust variable used for migrate selector
2023-09-01 15:42:29 -04:00
Joshua Boniface
1d35fec8a8
Remove cpuset configurations
...
This functionality simply did not work, with Libvirt continuing to dump
its processes into the root cset thus defeating the purpose entirely.
Just remove it, from some very initial testing it isn't worth the
headache.
2023-09-01 15:42:29 -04:00
Joshua Boniface
f51fc2ce64
Fix setting of csets for OSDs
2023-09-01 15:42:29 -04:00
Joshua Boniface
144f519e76
Add rinse dependency for provisioner
2023-09-01 15:42:29 -04:00
Joshua Boniface
be091f66d4
Remove pvc-flush references
...
This service causes more problems than it solves usually, so it is being
removed in the next PVC version.
2023-09-01 15:42:28 -04:00
Joshua Boniface
6cf8948107
Add Ceph support for single-node clusters
...
Ensures that the pool default size/min size is set to something
reasonable for a single node (effective RAID-1) and replace teh default
CRUSH replicate_rule set for this situation with one choosing OSD
instead of host as the default.
2023-09-01 15:42:28 -04:00
Joshua Boniface
e4ccafee73
Add cgroup delegation override
...
Required to solve the occasional
libvirt: QEMU Driver error : Requested operation is not valid:
cgroup CPUACCT controller is not mounted
problem, as per:
https://answers.launchpad.net/ubuntu/+question/665132
2023-09-01 15:42:28 -04:00
Joshua Boniface
25dde4709b
Ensure packages are installed as newhost
2023-09-01 15:42:28 -04:00
Joshua Boniface
4dfd877c7f
Ensure Admin users are in additional groups
2023-09-01 15:42:28 -04:00
Joshua Boniface
9fe43efac2
Convert default libvirtd to template
2023-09-01 15:42:28 -04:00
Joshua Boniface
aa6b4ac3dc
Make locale generation universal
...
Don't rely on a notify/handler, just do it every time in the base role.
2023-09-01 15:42:28 -04:00
Joshua Boniface
91ca3d1510
Ensure insecure_global_id_reclaim is false
2023-09-01 15:42:28 -04:00
Joshua Boniface
3397dacab4
Fix bugs with Patroni bootstrap
2023-09-01 15:42:28 -04:00
Joshua Boniface
1838f8ff56
Add proper PostgreSQL versioning
2023-09-01 15:42:28 -04:00
Joshua Boniface
773fd5a9d4
Ensure all zkCli has -server set
2023-09-01 15:42:28 -04:00