Updated consul service and service environment
This commit is contained in:
parent
0653a2288c
commit
891fc58676
3 changed files with 6 additions and 1 deletions
|
@ -7,6 +7,8 @@ consul:
|
|||
user: consul
|
||||
group: consul
|
||||
|
||||
ui_beta: false
|
||||
|
||||
config:
|
||||
server: false
|
||||
bind_addr: 0.0.0.0
|
||||
|
|
|
@ -4,7 +4,7 @@ Wants=network.target
|
|||
After=network.target
|
||||
|
||||
[Service]
|
||||
Environment="GOMAXPROCS=2" "PATH=/usr/local/bin:/usr/bin:/bin"
|
||||
EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/consul
|
||||
ExecStart=/usr/local/bin/consul agent -config-dir=/etc/consul.d
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillSignal=TERM
|
||||
|
|
|
@ -14,6 +14,9 @@ consul-init-env:
|
|||
- contents:
|
||||
- CONSUL_USER={{ consul.user }}
|
||||
- CONSUL_GROUP={{ consul.group }}
|
||||
- CONSUL_UI_BETA={{ consul.ui_beta }}
|
||||
- GOMAXPROCS=2
|
||||
- PATH=/usr/local/bin:/usr/bin:/bin
|
||||
|
||||
consul-init-file:
|
||||
file.managed:
|
||||
|
|
Loading…
Reference in a new issue