mount jenkins cluster volume on k3s host

This commit is contained in:
2021-12-31 08:50:19 -05:00
parent e8d42fed3c
commit 261c650214
4 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
---
# default values for prod.k3s
fstab:
gluster:
- name: jenkins
path: "/var/lib/jenkins"
state: mounted
- name: gitea
path: "/var/lib/gitea"
state: absent

View File

@@ -0,0 +1,19 @@
---
# provisioning services in k3s cluster
# mount gluster
- name: Create glusterfs fstab entries
ansible.posix.mount:
path: "{{item.path}}"
src: "gluster:/{{item.name}}"
fstype: "glusterfs"
boot: false
opts: "direct-io-mode=disable,_netdev,x-systemd.automount 0 0"
state: "{{item.state}}"
with_items: "{{fstab.gluster}}"
# provision docker image registry
# provision gitea
# provision argoCD