mirror of
https://github.com/kemko/nomad.git
synced 2026-01-01 16:05:42 +03:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user