WIP: CEPH
This commit is contained in:
parent
3dfd7778e6
commit
8074e8a458
@ -4,6 +4,7 @@ all:
|
||||
servers:
|
||||
hosts:
|
||||
n1.thefij:
|
||||
cephfs: true
|
||||
# consul_node_role: bootstrap
|
||||
nomad_node_role: both
|
||||
nomad_unique_host_volumes:
|
||||
@ -20,6 +21,7 @@ all:
|
||||
mode: "0755"
|
||||
read_only: false
|
||||
n2.thefij:
|
||||
cephfs: true
|
||||
nomad_node_role: both
|
||||
nomad_unique_host_volumes:
|
||||
- name: nextcloud-data
|
||||
@ -41,6 +43,7 @@ all:
|
||||
mode: "0755"
|
||||
read_only: false
|
||||
n3.thefij:
|
||||
cephfs: true
|
||||
nomad_node_class: ingress
|
||||
nomad_node_role: both
|
||||
pi4:
|
||||
|
@ -243,6 +243,12 @@
|
||||
state: mounted
|
||||
fstype: nfs4
|
||||
|
||||
- name: Enable cephfs support
|
||||
modprobe:
|
||||
name: rbd
|
||||
state: present
|
||||
when: cephfs
|
||||
|
||||
- name: Install Docker
|
||||
hosts: nomad_instances
|
||||
become: true
|
||||
|
9
nomad/storage_plugins/ceph.nomad
Normal file
9
nomad/storage_plugins/ceph.nomad
Normal file
@ -0,0 +1,9 @@
|
||||
job {
|
||||
|
||||
# Don't run on Raspberry Pi because kernel mod is not present
|
||||
constraint {
|
||||
attribute = "${attr.kernel.version}"
|
||||
operator = "regexp"
|
||||
value = "(?!-raspi)"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user