cluster/services/patroni: wait for consul

This commit is contained in:
Max Headroom 2024-08-14 12:46:30 +02:00
parent 01688e0628
commit 437240ec20

View file

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