adei_domain: "{{ openshift_master_default_subdomain }}" adei_pod_history_limit: 2 adei_pod_env: - name: "ENV" value: "~/.bashrc" - name: "HOME" value: "/data" - name: "SHELL" value: "/bin/bash" - name: "MYSQL_MASTER_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "MYSQL_SLAVE_SERVER" value: "mysql-slave.adei.svc.cluster.local" - name: "MYSQL_PORT" value: "3306" - name: "MYSQL_USER" value: "adei" - name: "MYSQL_PASSWORD" valueFrom: secretKeyRef: name: "adei" key: "adei-password" - name: "MYSQL_DATABASE" value: "adei_${setup}" - name: "ADEI_PORTS" value: "8080" - name: "ADEI_ENABLED_SETUPS" value: "${setup} ${setup}-logs" - name: "ADEI_REVISION" value: "${adei_revision}" - name: "ADEI_PATH" value: "/adei/src" - name: "ADEI_CACHE_ENGINE" value: "INNODB" - name: "ADEI_TRANSACTION_SIZE" value: "1000" - name: "BZR_EMAIL" value: "${maintainer}" - name: "ADEI_REPOSITORY" valueFrom: secretKeyRef: name: webdav key: repo - name: "ADEI_REPOSITORY_USER" valueFrom: secretKeyRef: name: webdav key: user # - name: "ADEI_REPOSITORY_PASSWORD" # valueFrom: # secretKeyRef: # name: webdav # key: password adei_prod_env: - name: "MYSQL_SERVER" value: "mysql.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_RELEASE" value: "1" - name: "ADEI_WRITE_LOGS" value: "${enable_logs}" - name: "ADEI_DEBUG" value: "${enable_debug}" - name: "APACHE_SERVERS" value: "${apache_servers}" - name: "ADEI_CONTINUOUS_CACHING" value: "${continuous_caching}" adei_log_env: - name: "MYSQL_SERVER" value: "mysql.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}-logs" - name: "ADEI_RELEASE" value: "1" - name: "ADEI_WRITE_LOGS" value: "0" - name: "ADEI_DEBUG" value: "0" - name: "APACHE_SERVERS" value: "64" adei_debug_env: - name: "MYSQL_SERVER" value: "mysql.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_RELEASE" value: "0" - name: "ADEI_WRITE_LOGS" value: "0" - name: "ADEI_DEBUG" value: "0" - name: "APACHE_SERVERS" value: "64" adei_cron_env: - name: "MYSQL_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_SCHEDULER" value: "${sched_parallel}" adei_update_env: - name: "ADEI_CONTINUOUS_CACHING" value: "${continuous_caching}" adei_admin_env: - name: "ADEI_ADMIN" value: "1" - name: "MYSQL_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_URL" value: "http://adei-${setup}-debug.adei.svc.cluster.local/adei" - name: "ADEI_SCHEDULER" value: "${sched_parallel}" - name: "ADEI_PARALLEL" value: "${cache_parallel}" adei_cache_env: - name: "MYSQL_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_URL" value: "http://adei-${setup}.adei.svc.cluster.local/adei" - name: "ADEI_PARALLEL" value: "${cache_parallel}" - name: "ADEI_IDLE_SLEEP" value: "5" adei_arc_cache_env: - name: "MYSQL_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}" - name: "ADEI_URL" value: "http://adei-${setup}.adei.svc.cluster.local/adei" - name: "ADEI_PARALLEL" value: "${cache_parallel}" - name: "ADEI_IDLE_SLEEP" value: "300" adei_log_cache_env: - name: "MYSQL_SERVER" value: "mysql-master.adei.svc.cluster.local" - name: "ADEI_SETUP" value: "${setup}-logs" - name: "ADEI_URL" value: "http://adei-${setup}-logs.adei.svc.cluster.local/adei" - name: "ADEI_PARALLEL" value: "${sched_parallel}" - name: "ADEI_IDLE_SLEEP" value: "300" adei_pod_vols: - 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-data persistentVolumeClaim: claimName: "${data_volume}" adei_admin_vols: - name: adei-home persistentVolumeClaim: claimName: adei-home 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 - name: adei-data subPath: "${data_path}" mountPath: "/adei/data/${setup}" readOnly: "${{ '{{' }}forbid_data_writes{{ '}}' }}" adei_prod_mounts: - name: adei-src subPath: prod mountPath: /adei/src adei_dbg_mounts: - name: adei-src subPath: dbg mountPath: /adei/src adei_admin_mounts: - name: adei-home mountPath: /data adei_frontends: 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", "${{ '{{' }}data_group{{ '}}' }}" ] 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", "${{ '{{' }}data_group{{ '}}' }}" ] configure: true enabled: true logs: name: "adei-${setup}-logs" node: "adei-${setup}-logs.{{ adei_domain }}" replicas: "${enable_logs}" env: "{{ adei_pod_env | union(adei_log_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true cacher: name: "adei-${setup}-cacher" replicas: "${cache_replicas}" resources: { request: { cpu: 1000m, mem: 1Gi } } cmd: [ "/openshift-entrypoint.sh", "/adei/src/scripts/system/cacher.sh" ] env: "{{ adei_pod_env | union(adei_cache_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true archive_cacher: name: "adei-${setup}-archive-cacher" 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", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true log_cacher: name: "adei-${setup}-log-cacher" replicas: "${enable_logs}" cmd: [ "/openshift-entrypoint.sh", "/adei/src/scripts/system/cacher.sh" ] env: "{{ adei_pod_env | union(adei_log_cache_env) }}" vols: "{{ adei_pod_vols }}" mounts: "{{ adei_prod_mounts | union(adei_pod_mounts) }}" groups: [ "adei", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true update: name: "adei-${setup}-update" cron: "${update_schedule}" cmd: [ "/openshift-entrypoint.sh", "/adei/src/scripts/cron/adei.cron.sh" ] 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", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true maintain: name: "adei-${setup}-maintain" cron: "${maintain_schedule}" cmd: [ "/openshift-entrypoint.sh", "/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", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true clean: name: "adei-${setup}-clean" cron: "${clean_schedule}" cmd: [ "/openshift-entrypoint.sh", "/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", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true admin: name: "adei-${setup}-admin" image: "adei-debug:latest" type: admin replicas: 0 cmd: [ "/docker-entrypoint.sh", "/adei/src/scripts/system/adminer.sh" ] 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", "${{ '{{' }}data_group{{ '}}' }}" ] enabled: true # Extra options: # start_tolerance: 30 # max_run_time: 600