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:
Seth Hoenig
2023-03-07 14:41:54 -06:00
committed by GitHub
parent b3f7559351
commit 24af468b67

View File

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