I am following the tutorial at: Bootstrap Nomad ACL System | Nomad - HashiCorp Learn
I create the anonymous policy using the supplied config:
namespace "*" {
policy = "write"
capabilities = ["alloc-node-exec"]
}
agent {
policy = "write"
}
operator {
policy = "write"
}
quota {
policy = "write"
}
node {
policy = "write"
}
host_volume "*" {
policy = "write"
}
Nomad fails to start with the following error:
Aug 03 11:43:35 nomadserver1 nomad[4731]: ==> Error loading configuration from /etc/nomad.d: Error loading /etc/nomad.d/anonymous.policy.hcl: unexpected keys *, *, agent, host_volume, namespace, node, operator, quota
My nomad config:
#Nomad Config Server Only
#------------------------
datacenter = "nyc"
data_dir = "/opt/nomad/data"
bind_addr = "0.0.0.0"
server {
enabled = true
bootstrap_expect = 3
encrypt = "IRr3+qdE="
server_join {
retry_join = ["10.1.96.3" ,"10.1.96.4" ,"10.1.96.5"]
retry_max = 3
retry_interval = "15s"
}
}
acl {
enable = true
}