Updated consul service and service environment

This commit is contained in:
Eric Renfro 2018-05-16 12:13:27 -04:00
parent 0653a2288c
commit 891fc58676
Signed by: psi-jack
GPG Key ID: 14977F3A50D9A5BF
3 changed files with 6 additions and 1 deletions

View File

@ -7,6 +7,8 @@ consul:
user: consul
group: consul
ui_beta: false
config:
server: false
bind_addr: 0.0.0.0

View File

@ -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

View File

@ -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: