Mateusz Matuszkowiak | bdc76b8 | 2018-12-05 15:54:01 +0100 | [diff] [blame^] | 1 | classes: |
| 2 | - system.prometheus.gainsight.elasticsearch_container |
| 3 | parameters: |
| 4 | _param: |
| 5 | gainsight_elasticsearch_enabled: 'true' |
| 6 | gainsight_elasticsearch_csv_upload_url: 'http://localhost:9999' |
| 7 | gainsight_elasticsearch_account_id: 'default' |
| 8 | gainsight_elasticsearch_environment_id: 'default' |
| 9 | gainsight_elasticsearch_app_org_id: 'default' |
| 10 | gainsight_elasticsearch_access_key: 'default' |
| 11 | gainsight_elasticsearch_job_id: 'default' |
| 12 | gainsight_elasticsearch_login: 'default' |
| 13 | gainsight_elasticsearch_elasticsearch_vip: ${_param:stacklight_log_address} |
| 14 | gainsight_elasticsearch_config_directory: '/srv/gainsight' |
| 15 | gainsight_elasticsearch_crontab_directory: '/etc/cron.d' |
| 16 | gainsight_elasticsearch_config_path: "${_param:gainsight_elasticsearch_config_directory}/config.ini" |
| 17 | docker: |
| 18 | client: |
| 19 | stack: |
| 20 | monitoring: |
| 21 | network: |
| 22 | monitoring: |
| 23 | driver: overlay |
| 24 | driver_opts: |
| 25 | encrypted: 1 |
| 26 | service: |
| 27 | gainsight_elasticsearch: |
| 28 | networks: |
| 29 | - monitoring |
| 30 | deploy: |
| 31 | replicas: 1 |
| 32 | labels: |
| 33 | com.mirantis.monitoring: "gainsight_elasticsearch" |
| 34 | restart_policy: |
| 35 | condition: any |
| 36 | labels: |
| 37 | com.mirantis.monitoring: "gainsight_elasticsearch" |
| 38 | image: ${_param:docker_image_prometheus_gainsight_elasticsearch} |
| 39 | volumes: |
| 40 | - ${prometheus:gainsight_elasticsearch:dir:config}:${_param:gainsight_elasticsearch_config_directory} |
| 41 | - ${prometheus:gainsight_elasticsearch:dir:crontab}:${_param:gainsight_elasticsearch_crontab_directory} |
| 42 | environment: |
| 43 | CSV_UPLOAD_URL: "${_param:gainsight_elasticsearch_csv_upload_url}" |
| 44 | ACCOUNT_ID: "${_param:gainsight_elasticsearch_account_id}" |
| 45 | ENVIRONMENT_ID: "${_param:gainsight_elasticsearch_environment_id}" |
| 46 | APP_ORG_ID: "${_param:gainsight_elasticsearch_app_org_id}" |
| 47 | ACCESS_KEY: "${_param:gainsight_elasticsearch_access_key}" |
| 48 | JOB_ID: "${_param:gainsight_elasticsearch_job_id}" |
| 49 | LOGIN: "${_param:gainsight_elasticsearch_login}" |
| 50 | ELASTICSEARCH_HOST: "${_param:gainsight_elasticsearch_elasticsearch_vip}" |
| 51 | CONFIG_PATH: "${_param:gainsight_elasticsearch_config_path}" |
| 52 | ENABLED: "${_param:gainsight_elasticsearch_enabled}" |