Added tailscale dependency to consul and nomad
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"];
|
||||
};
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user