about summary refs log tree commit diff
path: root/nixos/modules/services/networking/nomad.nix
diff options
context:
space:
mode:
authorPhillip Cloud <cloud@standard.ai>2021-01-18 09:03:52 -0500
committerPhillip Cloud <cloud@standard.ai>2021-01-23 19:44:37 -0500
commitf3aa71b7ec19f380192e9e31c6f208988777e341 (patch)
tree5d99fc1c9374919ac62795126f4787c452ae45c1 /nixos/modules/services/networking/nomad.nix
parent3e00482ba879e3b061d0dcf3f37d3263c48bfa34 (diff)
nixos/nomad: describe the nomad cluster manager responsibilities
Diffstat (limited to 'nixos/modules/services/networking/nomad.nix')
-rw-r--r--nixos/modules/services/networking/nomad.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/nomad.nix b/nixos/modules/services/networking/nomad.nix
index 04f15fe136648..b58b5c9182c63 100644
--- a/nixos/modules/services/networking/nomad.nix
+++ b/nixos/modules/services/networking/nomad.nix
@@ -66,6 +66,19 @@ in
         description = ''
           Configuration for Nomad. See the <link xlink:href="https://www.nomadproject.io/docs/configuration">documentation</link>
           for supported values.
+
+          Notes about `data_dir`:
+
+          If `data_dir` is set to a value other than the default value of
+          `"/var/lib/nomad"` it is the Nomad cluster manager's responsibility
+          to make sure that this directory exist and has the appropriate
+          permissions. One way to do this is with the `ExecStartPre` feature of
+          systemd.
+
+          Additionally, if `dropPrivileges` is `true` then `data_dir`
+          **cannot** be customized.  Setting `dropPrivileges` to `true` enables
+          the `DynamicUser` feature of systemd which directly manages and
+          operates on `StateDirectory`.
         '';
         example = literalExample ''
           {