Initial vault agent configuration
This commit is contained in:
34
vault-agent.service
Normal file
34
vault-agent.service
Normal file
@@ -0,0 +1,34 @@
|
||||
[Unit]
|
||||
Description=Vault Agent
|
||||
Documentation=https://vaultproject.io/docs/
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
ConditionFileNotEmpty=/etc/vault/agent.hcl
|
||||
|
||||
[Service]
|
||||
Type=notify
|
||||
User=kaffa
|
||||
Group=kaffa
|
||||
ProtectSystem=full
|
||||
ProtectHome=yes
|
||||
PrivateTmp=yes
|
||||
PrivateDevices=yes
|
||||
SecureBits=keep-caps
|
||||
AmbientCapabilities=CAP_IPC_LOCK
|
||||
CapabilityBoundingSet=CAP_SYSLOG CAP_IPC_LOCK
|
||||
NoNewPrivileges=yes
|
||||
Environment=VAULT_SKIP_VERIFY=true
|
||||
Environment=HOME=/var/lib/vault
|
||||
ExecStart=/usr/bin/vault agent -config=/etc/vault/agent.hcl
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
KillMode=process
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
TimeoutStopSec=30
|
||||
StartLimitInterval=60s
|
||||
StartLimitBurst=3
|
||||
LimitNOFILE=65536
|
||||
LimitMEMLOCK=infinity
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user