debian: add open-vault-agent config files

This commit is contained in:
Paul Stemmet 2024-04-20 13:13:28 +00:00
parent 1f3df3a64a
commit 35743e405a
Signed by: Paul Stemmet
GPG Key ID: EDEA539F594E7E75
3 changed files with 28 additions and 0 deletions

1
debian/open-vault-agent.dirs vendored Normal file
View File

@ -0,0 +1 @@
etc/vault-agent.d

1
debian/open-vault-agent.links vendored Normal file
View File

@ -0,0 +1 @@
lib/systemd/system/vault-agent@.service lib/systemd/system/open-vault-agent@.service

26
debian/open-vault-agent@.service vendored Normal file
View File

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