summaryrefslogtreecommitdiffstats
path: root/setup/projects/adei/vars/globals.yml
blob: 60cb212ab4c7e5592f565444b895ef4035a0e0c2 (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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
adei_domain: "{{ openshift_master_default_subdomain }}"

adei_pod_env:
    - name: "HOME"
      value: "/tmp"
    - name: "MYSQL_SERVER"
      value: "mysql.adei.svc.cluster.local"
    - name: "MYSQL_PORT"
      value: "3306"
    - name: "MYSQL_USER"
      value: "adei"
    - name: "MYSQL_PASSWORD"
      value: "adei"
    - name: "MYSQL_DATABASE"
      value: "adei"
    - name: "ADEI_PORTS"
      value: "8080"
    - name: "ADEI_SETUP"
      value: "${setup}"
    - name: "ADEI_ENABLED_SETUPS"
      value: "${setup}"
    - name: "ADEI_PARALLEL"
      value: "${cache_parallel}"
    - name: "ADEI_REVISION"
      value: "${adei_revision}"


adei_prod_env:
    - name: "ADEI_RELEASE"
      value: "1"
    - name: "ADEI_WRITE_LOGS"
      value: "${enable_logs}"
    - name: "ADEI_DEBUG"
      value: "${enable_debug}"
    - name: "APACHE_SERVERS"
      value: "${apache_servers}"

adei_log_env:
    - name: "ADEI_RELEASE"
      value: "1"
    - name: "ADEI_WRITE_LOGS"
      value: "0"
    - name: "ADEI_DEBUG"
      value: "0"
    - name: "APACHE_SERVERS"
      value: "5"

adei_debug_env:
    - name: "ADEI_RELEASE"
      value: "0"
    - name: "ADEI_WRITE_LOGS"
      value: "0"
    - name: "ADEI_DEBUG"
      value: "0"
    - name: "APACHE_SERVERS"
      value: "5"

adei_cron_env:
    - name: "ADEI_SCHEDULER"
      value: "1"


adei_pod_vols:
    - name: adei-etc
      persistentVolumeClaim: 
        claimName: adei-etc
    - name: adei-src
      persistentVolumeClaim: 
        claimName: adei-src
    - name: adei-cfg
      persistentVolumeClaim: 
        claimName: adei-cfg
    - name: adei-sys
      persistentVolumeClaim: 
        claimName: adei-sys
    - name: adei-tmp
      persistentVolumeClaim: 
        claimName: adei-tmp
    - name: adei-log
      persistentVolumeClaim: 
        claimName: adei-log
#    - name: adei-ovr
#      emptyDir: {}


adei_prod_mounts:
    - name: adei-src
      subPath: prod
      mountPath: /adei/src

adei_dbg_mounts:
    - name: adei-src
      subPath: dbg
      mountPath: /adei/src

adei_pod_mounts:
    - name: adei-cfg
      subPath: "${setup}"
      mountPath: /adei/cfg
    - name: adei-sys
      subPath: "${setup}"
      mountPath: /adei/sys
    - name: adei-tmp
      subPath: "${setup}"
      mountPath: /adei/tmp
    - name: adei-log
      subPath: "${setup}/apache2"
      mountPath: /var/log/apache2

# Only backends...
#    - name: adei-log
#      subPath: "${setup}/mail"
#      mountPath: /var/spool/mail

#adei_prod_pod_mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
#adei_dbg_pod_mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) }}"
    
adei_frontends:
    update:
      name: "adei-${setup}-update"
      cron: "${adei_schedule_cache}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: true
    maintain:
      name: "adei-${setup}-maintain"
      cron: "${adei_schedule_cache}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_manager.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    clean:
      name: "adei-${setup}-clean"
      cron: "${adei_schedule_cache}"
      cmd: [ "/bin/bash", "/adei/src/scripts/cron/adei_clean.cron.sh" ]
      env: "{{ adei_pod_env | union(adei_cron_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
    frontend:
      name: "adei-${setup}"
      node: "adei-${setup}.{{ adei_domain }}"
      replicas: "${adei_replicas}"
      env: "{{ adei_pod_env | union(adei_prod_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      configure: true
    debug:
      name: "adei-${setup}-debug"
      node: "adei-${setup}-debug.{{ adei_domain }}"
      replicas: 1
      env: "{{ adei_pod_env | union(adei_debug_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false
      configure: true
    logs:
      name: "adei-${setup}-logs"
      node: "adei-${setup}-logs.{{ adei_domain }}"  
      replicas: 1
      env: "{{ adei_pod_env | union(adei_log_env) }}"
      vols: "{{ adei_pod_vols }}"
      mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}"
      groups: [ "adei" ]
      enabled: false