e2e: fix permissions on nomad data directory (#16376)
This PR updates the provisioning step where we create /opt/nomad/data, such that it is with 0700 permissions in line with our security guidance.
This commit is contained in:
parent
835365d2a4
commit
32f8ca6ce3
|
@ -78,6 +78,7 @@ resource "null_resource" "install_nomad_configs_linux" {
|
|||
inline = [
|
||||
"mkdir -p /etc/nomad.d",
|
||||
"mkdir -p /opt/nomad/data",
|
||||
"sudo chmod 0700 /opt/nomad/data",
|
||||
"sudo rm -rf /etc/nomad.d/*",
|
||||
"sudo mv /tmp/consul.hcl /etc/nomad.d/consul.hcl",
|
||||
"sudo mv /tmp/vault.hcl /etc/nomad.d/vault.hcl",
|
||||
|
|
Loading…
Reference in New Issue