Deploy `/etc/nomad.d/policies/anonymous.hcl`.

This commit is contained in:
Kazuhiro MUSASHI 2022-03-14 22:51:46 +09:00
parent ce7a80db7a
commit 9a5a78d657
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,24 @@
namespace "*" {
policy = "write"
capabilities = ["alloc-node-exec"]
}
agent {
policy = "write"
}
operator {
policy = "write"
}
quota {
policy = "write"
}
node {
policy = "write"
}
host_volume "*" {
policy = "write"
}

View File

@ -24,6 +24,12 @@ if node['nomad']['manager']
end
directory '/etc/nomad.d/policies' do
owner 'nomad'
group 'nomad'
mode '755'
end
remote_file '/etc/nomad.d/policies/anonymous.hcl' do
owner 'nomad'
group 'nomad'
mode '644'