debian: add open-vault-agent config files
This commit is contained in:
parent
1f3df3a64a
commit
35743e405a
|
@ -0,0 +1 @@
|
||||||
|
etc/vault-agent.d
|
|
@ -0,0 +1 @@
|
||||||
|
lib/systemd/system/vault-agent@.service lib/systemd/system/open-vault-agent@.service
|
|
@ -0,0 +1,26 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Vault agent (config:%i)
|
||||||
|
Documentation=https://developer.hashicorp.com/vault/docs/agent
|
||||||
|
After=network.target network-online.target
|
||||||
|
|
||||||
|
ConditionPathIsDirectory=/etc/vault-agent.d/%i
|
||||||
|
ConditionFileNotEmpty=/etc/vault-agent.d/%i/agent.hcl
|
||||||
|
StartLimitIntervalSec=300
|
||||||
|
StartLimitBurst=20
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
User=vault
|
||||||
|
Group=vault
|
||||||
|
ExecStart=/bin/vault agent -config=/etc/vault-agent.d/%i/agent.hcl
|
||||||
|
KillSignal=SIGINT
|
||||||
|
|
||||||
|
Environment=GOMAXPROCS=2
|
||||||
|
EnvironmentFile=-/etc/default/vault-agent
|
||||||
|
EnvironmentFile=-/etc/vault-agent.d/%i/agent.env
|
||||||
|
WorkingDirectory=/etc/vault-agent.d/%i
|
||||||
|
TimeoutStopSec=30s
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=15
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue