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:
14
roles/vault/tasks/cluster/configure.yml
Normal file
14
roles/vault/tasks/cluster/configure.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
---
|
||||
|
||||
- name: cluster/configure | Ensure the vault/config directory exists
|
||||
file:
|
||||
dest: "{{ vault_config_dir }}"
|
||||
mode: 0750
|
||||
state: directory
|
||||
|
||||
- name: cluster/configure | Lay down the configuration file
|
||||
copy:
|
||||
content: "{{ vault_config | to_nice_json(indent=4) }}"
|
||||
dest: "{{ vault_config_dir }}/config.json"
|
||||
mode: 0640
|
||||
register: vault_config_change
|
||||
Reference in New Issue
Block a user