mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-07 02:27:43 +03:00
Vault security hardening and role isolation
This commit is contained in:
15
roles/vault/templates/host.service.j2
Normal file
15
roles/vault/templates/host.service.j2
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=vault
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
AmbientCapabilities=CAP_IPC_LOCK
|
||||
ExecStart=/usr/bin/vault server --config={{ vault_config_dir }}/config.json
|
||||
LimitNOFILE=40000
|
||||
NotifyAccess=all
|
||||
Restart=always
|
||||
RestartSec=10s
|
||||
User={{ vault_adduser_vars.name }}
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user