Add longhorn properly, fix up minio

This commit is contained in:
Amarpreet Minhas 2023-07-31 15:10:02 -04:00
parent ada5186e3d
commit b076f0ea19
2 changed files with 15 additions and 2 deletions

View file

@ -56,4 +56,17 @@
fstype: ext4
state: mounted
when: kube_storage
- name: ensure cryptsetup is installed
apt:
name: cryptsetup
state: present
when: kube_storage
- name: ensure dm_crypt is loaded
modprobe:
name: dm_crypt
state: present
persistent: present
when: kube_storage
...

View file

@ -1,5 +1,5 @@
MINIO_ROOT_USER={{ lookup('hashi_vault', 'secret=kv/data/minio:admin_username') }}
MINIO_ROOT_PASSWORD={{ lookup('hashi_vault', 'secret=kv/data/minio:admin_password') }}
MINIO_ROOT_USER={{ lookup('hashi_vault', 'secret=kv/data/minio:admin_username cacert=/etc/pki/certs/MaskedName_Root_CA.pem') }}
MINIO_ROOT_PASSWORD={{ lookup('hashi_vault', 'secret=kv/data/minio:admin_password cacert=/etc/pki/certs/MaskedName_Root_CA.pem') }}
MINIO_VOLUMES="{{ minio_volume }}"
MINIO_SERVER_URL="http://ivyking.minhas.io:9000"
MINIO_DOMAIN=ivyking.minhas.io