mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 10:25:42 +03:00
docs: note env and meta map assignment syntax (#11095)
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user