Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_janitor_monkey_replicas: 1 |
| 4 | docker_image_mongodb: library/mongo:3.4 |
| 5 | docker_mongodb_admin_username: admin |
| 6 | docker_mongodb_admin_password: password |
Volodymyr Stoiko | 804ff72 | 2017-08-17 13:19:16 +0300 | [diff] [blame^] | 7 | docker_image_janitor_monkey: docker-prod-local.artifactory.mirantis.com/mirantis/oss/janitor-monkey |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 8 | janitor_monkey_enabled: true |
| 9 | janitor_monkey_dryrun_mode: false |
| 10 | janitor_monkey_base_url: http://${_param:haproxy_janitor_monkey_bind_host}:${_param:haproxy_janitor_monkey_bind_port} |
| 11 | janitor_monkey_mongodb_host: ${_param:haproxy_mongodb_bind_host} |
| 12 | janitor_monkey_mongodb_port: ${_param:haproxy_mongodb_bind_port} |
| 13 | janitor_monkey_mongodb_db: mcp_cloud |
| 14 | janitor_monkey_mongodb_username: janitor |
| 15 | janitor_monkey_mongodb_password: password |
| 16 | janitor_monkey_elasticsearch: ${_param:haproxy_elasticsearch_bind_host}:${_param:haproxy_elasticsearch_binary_bind_port} |
| 17 | janitor_monkey_cloudfire_region: RegionOne |
| 18 | janitor_monkey_cis_clustername: ${_param:elasticsearch_cluster_name} |
| 19 | janitor_monkey_openstack: |
| 20 | project_domain_name: default |
| 21 | project_name: admin |
Vladislav Naumov | 3cce536 | 2017-07-17 17:12:41 +0300 | [diff] [blame] | 22 | username: "" |
| 23 | password: "" |
| 24 | auth_url: "" |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 25 | docker: |
| 26 | client: |
| 27 | stack: |
| 28 | janitor_monkey: |
| 29 | environment: |
| 30 | MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username} |
| 31 | MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password} |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 32 | simianarmy.recorder.mongodb.host: ${_param:janitor_monkey_mongodb_host} |
| 33 | simianarmy.recorder.mongodb.port: ${_param:janitor_monkey_mongodb_port} |
| 34 | simianarmy.recorder.mongodb.database: ${_param:janitor_monkey_mongodb_db} |
| 35 | simianarmy.recorder.mongodb.user: ${_param:janitor_monkey_mongodb_username} |
| 36 | simianarmy.recorder.mongodb.password: ${_param:janitor_monkey_mongodb_password} |
| 37 | simianarmy.base.url: ${_param:janitor_monkey_base_url} |
| 38 | simianarmy.janitor.enabled: ${_param:janitor_monkey_enabled} |
| 39 | simianarmy.janitor.leashed: ${_param:janitor_monkey_dryrun_mode} |
| 40 | simianarmy.calendar.isMonkeyTime: true |
| 41 | simianarmy.janitor.resources.sdb.domain: ${_param:janitor_monkey_mongodb_db} |
| 42 | simianarmy.client.cloudfire.cis.hosts: ${_param:janitor_monkey_elasticsearch} |
| 43 | simianarmy.client.cloudfire.region: ${_param:janitor_monkey_cloudfire_region} |
| 44 | simianarmy.client.cloudfire.cis.clustername: ${_param:janitor_monkey_cis_clustername} |
| 45 | simianarmy.client.cloudfire.identityEndpoint: ${_param:janitor_monkey_openstack:auth_url} |
| 46 | simianarmy.client.cloudfire.accountKey: ${_param:janitor_monkey_openstack:username} |
| 47 | simianarmy.client.cloudfire.secretKey: ${_param:janitor_monkey_openstack:password} |
| 48 | simianarmy.client.cloudfire.domain: ${_param:janitor_monkey_openstack:project_domain_name} |
| 49 | simianarmy.client.cloudfire.project: ${_param:janitor_monkey_openstack:project_name} |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 50 | service: |
| 51 | mongodb: |
| 52 | image: ${_param:docker_image_mongodb} |
| 53 | deploy: |
| 54 | replicas: ${_param:docker_janitor_monkey_replicas} |
| 55 | restart_policy: |
| 56 | condition: any |
| 57 | ports: |
| 58 | - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port} |
| 59 | volumes: |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 60 | - /srv/volumes/mongodb:/data/db |
| 61 | api: |
| 62 | image: ${_param:docker_image_janitor_monkey} |
| 63 | deploy: |
| 64 | replicas: ${_param:docker_janitor_monkey_replicas} |
| 65 | restart_policy: |
| 66 | condition: any |
| 67 | ports: |
| 68 | - ${_param:haproxy_janitor_monkey_exposed_port}:8080 |