From e83b34c8067d6dfb787dfcf5c4759c138512950b Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Wed, 16 May 2018 14:50:13 -0400 Subject: [PATCH] Fix systemd service unit EnvironmentFile was statically set when it should've been pointing to /etc/default/vault for Debian and /etc/sysconfig/vault for CentOS/EL. --- vault/files/vault.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vault/files/vault.service b/vault/files/vault.service index 3c6ef27..7c31c96 100644 --- a/vault/files/vault.service +++ b/vault/files/vault.service @@ -4,7 +4,7 @@ Requires=network-online.target After=network-online.target{% if config.storage and config.storage.type == "consul" %} consul.service{% endif %} [Service] -EnvironmentFile=-/etc/sysconfig/vault +EnvironmentFile=-/etc/{% if grains['os_family'] == 'Debian' %}default{% else %}sysconfig{% endif %}/vault User={{ user }} Group={{ group }} ExecStart=/usr/local/bin/vault server {% if config.dev_mode %}-dev{% else %}-config="/etc/vault.d/config.hcl"{% endif %}