mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 23:23:22 +02:00
35 lines
840 B
Plaintext
35 lines
840 B
Plaintext
![]() |
[Unit]
|
||
|
Description="HashiCorp Vault Agent for Consul"
|
||
|
Documentation=https://www.vaultproject.io/docs/
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target
|
||
|
ConditionFileNotEmpty={{ consul_root_dir }}/vault/agent.hcl
|
||
|
StartLimitIntervalSec=60
|
||
|
StartLimitBurst=3
|
||
|
PartOf=consul.service
|
||
|
|
||
|
[Service]
|
||
|
Type=notify
|
||
|
User={{ consul_user }}
|
||
|
Group={{ consul_user }}
|
||
|
ProtectSystem=full
|
||
|
ProtectHome=read-only
|
||
|
PrivateTmp=yes
|
||
|
PrivateDevices=yes
|
||
|
SecureBits=keep-caps
|
||
|
AmbientCapabilities=CAP_IPC_LOCK
|
||
|
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
|
||
|
NoNewPrivileges=yes
|
||
|
ExecStart=/usr/local/bin/vault agent -config={{ consul_root_dir }}/vault/agent.hcl
|
||
|
ExecReload=/bin/kill --signal HUP $MAINPID
|
||
|
KillMode=process
|
||
|
KillSignal=SIGINT
|
||
|
Restart=on-failure
|
||
|
RestartSec=5
|
||
|
TimeoutStopSec=30
|
||
|
LimitNOFILE=65536
|
||
|
LimitMEMLOCK=infinity
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|