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