You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Backport of docs: emphasize HOME and USER env vars for tasks that use custom user setting into release/1.9.x (#25887)
* no-op commit due to failed cherry-picking
* docs: emphasize HOME and USER env vars for tasks that use custom `user` setting (#25879)
In #25859 we fixed the task environment variables to account for user field
setting. This PR follows up with documentation adjustments.
---------
Co-authored-by: temp <[email protected]>
Co-authored-by: Piotr Kazmierczak <[email protected]>
Copy file name to clipboardExpand all lines: website/content/docs/runtime/environment.mdx
+8-5Lines changed: 8 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,9 @@ description: Nomad provides runtime environment variables that you can use in yo
7
7
# Runtime Environment Settings
8
8
9
9
This page provides reference information for runtime environment settings in
10
-
your Nomad job specification. Learn about task identifiers, CPU and memory resources, IP addresses, task directories, and host variables. Review job, network, and Consul variables. Supply arbitrary configuration to a job task.
10
+
your Nomad job specification. Learn about task identifiers, CPU and memory
11
+
resources, IP addresses, task directories, and host variables. Review job,
12
+
network, and Consul variables. Supply arbitrary configuration to a job task.
11
13
12
14
## Introduction
13
15
@@ -108,10 +110,11 @@ behavior.
108
110
109
111
## Host environment variables
110
112
111
-
Nomad passes the environment variables defined in the client host to tasks when
112
-
using the `exec`, `raw_exec`, and `java` task drivers. The variables that are
113
-
passed to the tasks can be controlled using the client configuration
114
-
[`env.denylist`][].
113
+
Nomad passes the environment variables defined in the client host to tasks
114
+
when using the `exec`, `raw_exec`, and `java` task drivers. Nomad also modifies
115
+
`HOME` and `USER` variables for tasks that have the `user` parameter set, to
116
+
reflect the set username. The variables that are passed to the tasks can be
117
+
controlled using the client configuration [`env.denylist`][].
0 commit comments