docs: note env and meta map assignment syntax (#11095)

This commit is contained in:
Mahmood Ali
2021-08-29 14:35:09 -04:00
committed by GitHub
parent d641bbca28
commit c71334bb6e
2 changed files with 20 additions and 0 deletions

View File

@@ -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

View File

@@ -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'