Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Nomad
Commits
4067e82c
Commit
4067e82c
authored
3 years ago
by
Mahmood Ali
Browse files
Options
Download
Email Patches
Plain Diff
docs: note env and meta map assignment syntax
parent
42666b80
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
website/content/docs/job-specification/env.mdx
+10
-0
website/content/docs/job-specification/env.mdx
website/content/docs/job-specification/meta.mdx
+10
-0
website/content/docs/job-specification/meta.mdx
with
20 additions
and
0 deletions
+20
-0
website/content/docs/job-specification/env.mdx
+
10
-
0
View file @
4067e82c
...
...
@@ -65,6 +65,16 @@ env {
}
```
### Environment variables with dots
Environment variables that aren't valid HCLv2 identifiers, like ones containing `.`, require an alternative map assignment syntax.
```hcl
env = {
"discovery.type" = "single-node"
}
```
### Dynamic Environment Variables
Nomad also supports populating dynamic environment variables from data stored in
...
...
This diff is collapsed.
Click to expand it.
website/content/docs/job-specification/meta.mdx
+
10
-
0
View file @
4067e82c
...
...
@@ -79,6 +79,16 @@ meta {
}
```
### Meta keys with dots
Meta keys that aren't valid HCLv2 identifiers, like ones containing `.`, require an alternative map assignment syntax.
```hcl
meta = {
"project.team" = "sre"
}
```
[job]: /docs/job-specification/job 'Nomad job Job Specification'
[group]: /docs/job-specification/group 'Nomad group Job Specification'
[task]: /docs/job-specification/task 'Nomad task Job Specification'
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment