summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/vars/volumes.yml
blob: a17cadbcbab8125186e685bdc3e5b0071dc64052 (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
gids:
  adei: { id: 6001, users: [ 'csa' ]  }
  adei_db: { id: 6002 }
  adei_data: { id: 6003 }
  adei_asec: { id: 6005 }

volumes:
  adei_host: { volume: "hostraid",  path: "/adei",       write: true }                  # mysql
  adei_data: { volume: "datastore", path: "/adei",       write: true }                  # Source data (e.g. RRD) for ADEI pods
  adei_home: { volume: "datastore", path: "/adei/home",  write: true }                  # temporary home for administrator pods
  adei_init: { volume: "openshift", path: "/adei/init"}                                 # simple mysql (or obsolete)
  adei_src:  { volume: "openshift", path: "/adei/src",   write: true }                  # prod & debug (init creates setup links)
  adei_cfg:  { volume: "openshift", path: "/adei/cfg",   write: true }                  # per-setup configs (ADEI/wiki modifies setup)
  adei_sys:  { volume: "openshift", path: "/adei/sys",   write: true }                  # per-setup cron-jon overrides (it seems log intensively complains if we mount the same volume read-only and read-write)
  adei_tmp:  { volume: "temporary", path: "/adei/tmp",   write: true }                  # per-setup temporary files
  adei_log:  { volume: "temporary", path: "/adei/log",   write: true }                  # per-replica (should be fine) temporary files
#  adei_db:   { volume: "databases", path: "/adei",       write: true }                  # mysql
  sync_cfg:  { volume: "openshift", path: "/adei/sync",  write: true }


# This is not part of volumes and the permissions should be always provisioned using files on adei_host 'osv'
local_volumes:
  adei_master:  { volume: "hostraid", path: "/adei/mysql_master",       nodes: [3],            write: true }
  adei_slave:   { volume: "hostraid", path: "/adei/mysql_slave",        nodes: [1, 2],         write: true }
  asec_master:  { volume: "hostraid", path: "/adei/asec_master",        nodes: [3],            write: true }
  asec_slave:   { volume: "hostraid", path: "/adei/asec_slave",         nodes: [1, 2],         write: true }
  adei_galera:  { volume: "hostraid", path: "/adei/galera",                                    write: true }

files:
  - { osv: "adei_cfg", path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_src", path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_src", path: "/prod",           state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_src", path: "/dbg",            state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_sys", path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_log", path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_tmp", path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_home",path: "/",               state: "directory", group: "adei", mode: "02775" }
  - { osv: "adei_data",path: "/",               state: "directory", group: "adei_data", mode: "02775" }
  - { osv: "adei_data",path: "/data",           state: "directory", group: "adei_data", mode: "02775" }
  - { osv: "adei_data",path: "/munin",          state: "directory", group: "adei_data", mode: "02775" }
  - { osv: "adei_host",path: "mysql",           state: "directory", group: "adei_db", mode: "02775" }
  - { osv: "adei_host",path: "galera",          state: "directory", group: "adei_db", mode: "02775" }
  - { osv: "adei_host",path: "mysql_master",    state: "directory", group: "adei_db", mode: "02775" }
  - { osv: "adei_host",path: "mysql_slave",     state: "directory", group: "adei_db", mode: "02775" }
  - { osv: "adei_host",path: "asec_master",     state: "directory", group: "adei_asec", mode: "02775" }
  - { osv: "adei_host",path: "asec_slave",      state: "directory", group: "adei_asec", mode: "02775" }
  - { osv: "sync_cfg", path: "asec",            state: "directory", group: "adei_asec", mode: "02775" }
#  - { osv: "adei_db",  path: "mysql",   state: "directory", group: "adei_db", mode: "02775" }