cluster/services/patroni: wait for consul

This commit is contained in:
Max Headroom 2024-08-14 12:46:30 +02:00
parent 845f129fc1
commit eb8591f81d

View file

@ -25,6 +25,10 @@ in
"d '${baseDir}' 0700 patroni patroni - -" "d '${baseDir}' 0700 patroni patroni - -"
"d '${walDir}' 0700 patroni patroni - -" "d '${walDir}' 0700 patroni patroni - -"
]; ];
systemd.services.patroni = {
requires = [ "consul-ready.service" ];
after = [ "consul-ready.service" ];
};
services.patroni = { services.patroni = {
enable = true; enable = true;
name = hostName; name = hostName;