diff options
Diffstat (limited to 'setup/projects/adei/vars/globals.yml')
-rw-r--r-- | setup/projects/adei/vars/globals.yml | 41 |
1 files changed, 24 insertions, 17 deletions
diff --git a/setup/projects/adei/vars/globals.yml b/setup/projects/adei/vars/globals.yml index 8638e44..8f67572 100644 --- a/setup/projects/adei/vars/globals.yml +++ b/setup/projects/adei/vars/globals.yml @@ -6,7 +6,7 @@ adei_pod_env: - name: "ENV" value: "~/.bashrc" - name: "HOME" - value: "/data/home" + value: "/data" - name: "SHELL" value: "/bin/bash" - name: "MYSQL_MASTER_SERVER" @@ -178,11 +178,14 @@ adei_pod_vols: - name: adei-log persistentVolumeClaim: claimName: adei-log - -adei_admin_vols: - name: adei-data persistentVolumeClaim: - claimName: adei-data + claimName: "${data_volume}" + +adei_admin_vols: + - name: adei-home + persistentVolumeClaim: + claimName: adei-home adei_pod_mounts: - name: adei-cfg @@ -197,7 +200,11 @@ adei_pod_mounts: - name: adei-log subPath: "${setup}/apache2" mountPath: /var/log/apache2 - + - name: adei-data + subPath: "${data_path}" + mountPath: "/adei/data/${setup}" + readOnly: "${{ '{{' }}forbid_data_writes{{ '}}' }}" + adei_prod_mounts: - name: adei-src subPath: prod @@ -209,7 +216,7 @@ adei_dbg_mounts: mountPath: /adei/src adei_admin_mounts: - - name: adei-data + - name: adei-home mountPath: /data adei_frontends: @@ -220,7 +227,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_prod_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] configure: true debug: name: "adei-${setup}-debug" @@ -229,7 +236,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_debug_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] configure: true enabled: true logs: @@ -239,7 +246,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_log_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true cacher: name: "adei-${setup}-cacher" @@ -249,16 +256,16 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_cache_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true archive_cacher: name: "adei-${setup}-archive-cacher" - replicas: "1" + replicas: "${archive_replicas}" cmd: [ "/openshift-entrypoint.sh", "/adei/src/scripts/system/cacher.sh", "-m", "archive" ] env: "{{ adei_pod_env | union(adei_arc_cache_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true log_cacher: name: "adei-${setup}-log-cacher" @@ -267,7 +274,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_log_cache_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true update: name: "adei-${setup}-update" @@ -276,7 +283,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_cron_env) | union(adei_update_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true maintain: name: "adei-${setup}-maintain" @@ -285,7 +292,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_cron_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true clean: name: "adei-${setup}-clean" @@ -294,7 +301,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_cron_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true admin: name: "adei-${setup}-admin" @@ -305,7 +312,7 @@ adei_frontends: env: "{{ adei_pod_env | union(adei_admin_env) }}" vols: "{{ adei_pod_vols | union(adei_admin_vols) }}" mounts: "{{ adei_dbg_mounts | union(adei_pod_mounts) | union(adei_admin_mounts) }}" - groups: [ "adei" ] + groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true # Extra options: |