Browse Source

consul: add cap_net_bind_service

master
Sean Johnson 3 years ago
parent
commit
4749644a81
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: 9FA15B87469EA850
  1. 7
      app/consul/capabilities.sls
  2. 1
      top.sls

7
app/consul/capabilities.sls

@ -0,0 +1,7 @@
---
consul net bind service:
cmd.run:
- name: setcap cap_net_bind_service=+ep $(readlink -f /usr/local/bin/consul)
- onchanges:
- /usr/local/bin/consul

1
top.sls

@ -57,6 +57,7 @@ base:
- match: compound
- app.consul.tls
- consul
- app.consul.capabilities
'G@roles:nomad_server or G@roles:nomad_agent':
- match: compound

Loading…
Cancel
Save