Luiz Aoqui
e3d78c343c
template: set default UID/GID to -1 ( #13998 )
...
UID/GID 0 is usually reserved for the root user/group. While Nomad
clients are expected to run as root it may not always be the case.
Setting these values as -1 if not defined will fallback to the pervious
behaviour of not attempting to set file ownership and use whatever
UID/GID the Nomad agent is running as. It will also keep backwards
compatibility, which is specially important for platforms where this
feature is not supported, like Windows.
2022-08-04 11:26:08 -04:00
Piotr Kazmierczak
530280505f
client: enable specifying user/group permissions in the template stanza ( #13755 )
...
* Adds Uid/Gid parameters to template.
* Updated diff_test
* fixed order
* update jobspec and api
* removed obsolete code
* helper functions for jobspec parse test
* updated documentation
* adjusted API jobs test.
* propagate uid/gid setting to job_endpoint
* adjusted job_endpoint tests
* making uid/gid into pointers
* refactor
* updated documentation
* updated documentation
* Update client/allocrunner/taskrunner/template/template_test.go
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
* Update website/content/api-docs/json-jobs.mdx
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
* propagating documentation change from Luiz
* formatting
* changelog entry
* changed changelog entry
Co-authored-by: Luiz Aoqui <luiz@hashicorp.com>
2022-08-02 22:15:38 +02:00
Mahmood Ali
a155423ba3
clarify variable references
2020-11-09 16:23:09 -05:00
Mahmood Ali
bbe3d315d7
Restructure Variables and Locals
...
This reimplements the handling of Variables and Locals in HCL2 config.
This change supports declaring variables and locals, with defaults.
2020-11-09 14:58:57 -05:00
Mahmood Ali
b3c118ae22
Add hclv2 parser
2020-10-21 15:46:56 -04:00