summaryrefslogtreecommitdiffstats
path: root/setup/configs/volumes.yml
blob: 020c7d20017fd0c369272bde3390f8569da5316e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
ands_paths:
  hostraid: /mnt/hostraid
  provision: /mnt/provision
  openshift: /mnt/openshift
  temporary: /mnt/temporary
  databases: /mnt/databases
  datastore: /mnt/datastore
  katrin_data: /mnt/katrin

ands_heketi_domain:
  servers: "storage_nodes"
  volumes:
    heketidbstorage: { type: "cfg" }    

ands_nfs_clients:
   rw: [ "{{ ands_openshift_public_network }}", "141.52.64.104" ]
   ro: [ "141.52.64.0/23" ]

ands_storage_domains:
  - servers: "ands_storage_servers"
    clients: [ "nodes", "new_nodes" ]
    volumes:
      provision: { type: "cfg",  mount: "{{ ands_paths.provision }}" }
  - servers: "ands_storage_servers"
    clients: [ "masters", "new_masters" ]
    volumes:
      openshift: { type: "cfg",  mount: "{{ ands_paths.openshift }}", nfs_clients: "{{ ands_nfs_clients }}" }
      databases: { type: "db",   mount: "{{ ands_paths.databases }}", access: "ReadOnlyMany" }
      temporary: { type: "tmp",  mount: "{{ ands_paths.temporary }}", nfs_clients: "{{ ands_nfs_clients }}" }
      datastore: { type: "data", mount: "{{ ands_paths.datastore }}", nfs_clients: "{{ ands_nfs_clients }}" }
      katrin_data: { type: "data", mount: "{{ ands_paths.katrin_data }}", nfs_clients: "{{ ands_nfs_clients }}" }
  - servers: "ands_storage_servers"
    volumes:
      block:    { type: "db", transport: "{{ ands_rdma_support | ternary('rdma', 'tcp') }}" }

#  - servers: "ands_storage_servers"
#    clients: [ "nodes", "new_nodes" ]
#      openshift: { type: "cfg", mount: "{{ ands_paths.openshift }}" }
#      temporary: { type: "tmp", mount: "{{ ands_paths.temporary }}" }
#    volumes: 
#  - ovirt:
#  - pdv:

ands_local_storage_domains:
  - servers: [ "ands_storage_servers" ]
    volumes:
      hostraid: { type: "host", path: "/mnt/ands/hostmount", mount: "{{ ands_paths.hostraid }}" }

# Per project list (to distribute in multiple namespaces later)
# If not started with '/' will be prepended with project name
ands_openshift_volumes:
  etc:  { volume: "openshift", path: "" }
  etcw: { volume: "openshift", path: "", write: true }
  data: { volume: "datastore", path: "", write: true }
  db:   { volume: "databases", path: "", write: true }
  tmp:  { volume: "temporary", path: "", write: true }
  host: { volume: "hostraid",  path: "", write: true }

# Global list, we only take things from the volume of project
#ands_openshift_files:
#  - { osv: "log", path: "apache2-kaas", state: "directory", mode: "0777" }


#ands_block_volumes:
#  adei-mysql: { volume: "block", capacity: "2Ti", ha: 2, project: "kaas" }