Added tailscale dependency to consul and nomad

This commit is contained in:
marc
2024-02-20 00:43:57 +01:00
parent bf8c91e632
commit 32654faf98
4 changed files with 20 additions and 5 deletions

View File

@@ -27,8 +27,8 @@ client {
}
# Gitea
# host_volume "gitea" {
# path = "/mnt/vatnajokull/nomad_volumes/gitea/data"
# read_only = false
# }
host_volume "gitea" {
path = "/mnt/vatnajokull/nomad_volumes/gitea/data"
read_only = false
}
}

View File

@@ -19,7 +19,8 @@
};
"/mnt/vatnajokull" = {
device = "vatnajokull:/mnt/raid1";
# device = "vatnajokull:/mnt/raid1";
device = "100.89.248.65:/mnt/raid1";
fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
};

View File

@@ -40,6 +40,13 @@ in
};
};
# --- Systemd patch --------------------------------
systemd.services.consul = {
after = [ "sys-subsystem-net-devices-tailscale0.device" "tailscaled.service" ];
requires = [ "tailscaled.service" ];
};
# --- Config files ---------------------------------
environment.etc = {

View File

@@ -28,6 +28,13 @@ in
extraSettingsPaths = [ "/etc/nomad.d" ];
};
# --- Systemd patch --------------------------------
systemd.services.nomad = {
after = [ "sys-subsystem-net-devices-tailscale0.device" "tailscaled.service" ];
requires = [ "tailscaled.service" "consul.service" ];
};
# --- Config files ---------------------------------
environment.etc = {