Commit 4067e82c authored by Mahmood Ali's avatar Mahmood Ali
Browse files

docs: note env and meta map assignment syntax

parent 42666b80
Showing with 20 additions and 0 deletions
+20 -0
......@@ -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
......
......@@ -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'
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment