Deploy `/etc/nomad.d/policies/anonymous.hcl`.
This commit is contained in:
parent
ce7a80db7a
commit
9a5a78d657
|
@ -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"
|
||||||
|
}
|
|
@ -24,6 +24,12 @@ if node['nomad']['manager']
|
||||||
end
|
end
|
||||||
|
|
||||||
directory '/etc/nomad.d/policies' do
|
directory '/etc/nomad.d/policies' do
|
||||||
|
owner 'nomad'
|
||||||
|
group 'nomad'
|
||||||
|
mode '755'
|
||||||
|
end
|
||||||
|
|
||||||
|
remote_file '/etc/nomad.d/policies/anonymous.hcl' do
|
||||||
owner 'nomad'
|
owner 'nomad'
|
||||||
group 'nomad'
|
group 'nomad'
|
||||||
mode '644'
|
mode '644'
|
||||||
|
|
Loading…
Reference in New Issue