Added tailscale dependency to consul and nomad

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

No files matched your search

+4 -4
View File
@@ -27,8 +27,8 @@ client {
} }
# Gitea # Gitea
# host_volume "gitea" { host_volume "gitea" {
# path = "/mnt/vatnajokull/nomad_volumes/gitea/data" path = "/mnt/vatnajokull/nomad_volumes/gitea/data"
# read_only = false read_only = false
# } }
} }
+2 -1
View File
@@ -19,7 +19,8 @@
}; };
"/mnt/vatnajokull" = { "/mnt/vatnajokull" = {
device = "vatnajokull:/mnt/raid1"; # device = "vatnajokull:/mnt/raid1";
device = "100.89.248.65:/mnt/raid1";
fsType = "nfs"; fsType = "nfs";
options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"]; options = [ "x-systemd.automount" "noauto" "noatime" "x-systemd.idle-timeout=600"];
}; };
+7
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 --------------------------------- # --- Config files ---------------------------------
environment.etc = { environment.etc = {
+7
View File
@@ -28,6 +28,13 @@ in
extraSettingsPaths = [ "/etc/nomad.d" ]; 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 --------------------------------- # --- Config files ---------------------------------
environment.etc = { environment.etc = {