2017-04-24 10:48:25 -04:00
|
|
|
{%- from "vault/map.jinja" import vault with context -%}
|
|
|
|
[Unit]
|
|
|
|
Description=vault server
|
|
|
|
Requires=network-online.target
|
|
|
|
After=network-online.target consul.service
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/sysconfig/vault
|
|
|
|
Restart=on-failure
|
|
|
|
ExecStart=/usr/local/bin/vault server {% if vault.dev_mode %}-dev{% else %} -config="/etc/vault/config/server.hcl"{% endif %}
|
2017-06-06 11:20:44 -04:00
|
|
|
User={{ vault.user }}
|
|
|
|
Group={{ vault.group }}
|