Vault local endpoint
This commit is contained in:
parent
27838518c6
commit
f728a7f9bb
@ -1,17 +1,18 @@
|
|||||||
---
|
---
|
||||||
- hosts: leftcoastlab
|
- hosts: leftcoastlab
|
||||||
become: yes
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Pull In Vars
|
- name: Pull In Vars
|
||||||
include_vars:
|
include_vars:
|
||||||
dir: ../vars
|
dir: ../vars
|
||||||
|
|
||||||
- name: Create Vault Bind Root
|
- name: Create Vault Bind Root
|
||||||
|
become: yes
|
||||||
file:
|
file:
|
||||||
path: /opt/vault
|
path: /opt/vault
|
||||||
state: directory
|
state: directory
|
||||||
|
|
||||||
- name: Ensure Vault Bind directories in place
|
- name: Ensure Vault Bind directories in place
|
||||||
|
become: yes
|
||||||
file:
|
file:
|
||||||
path: "/opt/vault/{{item}}"
|
path: "/opt/vault/{{item}}"
|
||||||
state: directory
|
state: directory
|
||||||
@ -21,6 +22,7 @@
|
|||||||
- file
|
- file
|
||||||
|
|
||||||
- name: Create Vault Config
|
- name: Create Vault Config
|
||||||
|
become: yes
|
||||||
template:
|
template:
|
||||||
src: ../templates/vault-config.json.j2
|
src: ../templates/vault-config.json.j2
|
||||||
dest: /opt/vault/config/vault.json
|
dest: /opt/vault/config/vault.json
|
||||||
@ -36,6 +38,8 @@
|
|||||||
- /opt/vault/logs:/vault/logs
|
- /opt/vault/logs:/vault/logs
|
||||||
- /opt/vault/file:/vault/file
|
- /opt/vault/file:/vault/file
|
||||||
- /opt/vault/config:/vault/config
|
- /opt/vault/config:/vault/config
|
||||||
|
env:
|
||||||
|
VAULT_ADDR: http://127.0.0.1:8200
|
||||||
capabilities:
|
capabilities:
|
||||||
- IPC_LOCK
|
- IPC_LOCK
|
||||||
entrypoint:
|
entrypoint:
|
||||||
|
Loading…
Reference in New Issue
Block a user