Add vault cacert path for fbsd, set up vault certs for docker
This commit is contained in:
parent
8b59e22b7d
commit
38b8ee075f
2 changed files with 12 additions and 0 deletions
|
@ -85,6 +85,7 @@
|
|||
VAULT_ADDR: https://vault.service.masked.name:8200
|
||||
VAULT_TOKEN: "{{ lookup('file', lookup('env', 'HOME') + '/.vault-token') }}"
|
||||
VAULT_FORMAT: json
|
||||
VAULT_CACERT: /etc/ssl/certs/MaskedName_Root_CA.crt
|
||||
register: cert_data
|
||||
when: exp.rc != 0
|
||||
|
||||
|
|
|
@ -31,4 +31,15 @@
|
|||
- docker-ce
|
||||
- docker-ce-cli
|
||||
- containerd.io
|
||||
|
||||
- name: ensure docker certs directory exists
|
||||
file:
|
||||
path: /etc/docker/certs.d/docker.service.{{ consul_domain }}:8082
|
||||
state: directory
|
||||
|
||||
- name: symlink ca cert
|
||||
file:
|
||||
src: /etc/pki/certs/{{ vault_ca_cert_name }}
|
||||
dest: /etc/docker/certs.d/docker.service.{{ consul_domain }}:8082/ca.crt
|
||||
state: link
|
||||
...
|
||||
|
|
Loading…
Reference in a new issue