blob: d1f240ce759eda53272e95b628a3a61ab7149302 [file] [log] [blame]
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +03001parameters:
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 Stoiko804ff722017-08-17 13:19:16 +03007 docker_image_janitor_monkey: docker-prod-local.artifactory.mirantis.com/mirantis/oss/janitor-monkey
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +03008 janitor_monkey_bind_host: cleanup-service-api
9 janitor_monkey_bind_port: 8080
10 janitor_monkey_ssl:
11 enabled: false
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030012 janitor_monkey_enabled: true
13 janitor_monkey_dryrun_mode: false
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030014 janitor_monkey_mongodb_host: cleanup-service-mongodb
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030015 janitor_monkey_mongodb_port: ${_param:haproxy_mongodb_bind_port}
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030016 mongodb_ssl:
17 enabled: false
18 janitor_monkey_base_url: http://${_param:janitor_monkey_mongodb_host}:${_param:janitor_monkey_mongodb_port}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030019 janitor_monkey_mongodb_db: mcp_cloud
20 janitor_monkey_mongodb_username: janitor
21 janitor_monkey_mongodb_password: password
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030022 janitor_monkey_elasticsearch: ${_param:elasticsearch_bind_host}:${_param:elasticsearch_binary_bind_port}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030023 janitor_monkey_cloudfire_region: RegionOne
24 janitor_monkey_cis_clustername: ${_param:elasticsearch_cluster_name}
25 janitor_monkey_openstack:
26 project_domain_name: default
27 project_name: admin
Vladislav Naumov3cce5362017-07-17 17:12:41 +030028 username: ""
29 password: ""
30 auth_url: ""
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030031 docker:
32 client:
33 stack:
34 janitor_monkey:
35 environment:
36 MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username}
37 MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030038 simianarmy.recorder.mongodb.host: ${_param:janitor_monkey_mongodb_host}
39 simianarmy.recorder.mongodb.port: ${_param:janitor_monkey_mongodb_port}
40 simianarmy.recorder.mongodb.database: ${_param:janitor_monkey_mongodb_db}
41 simianarmy.recorder.mongodb.user: ${_param:janitor_monkey_mongodb_username}
42 simianarmy.recorder.mongodb.password: ${_param:janitor_monkey_mongodb_password}
43 simianarmy.base.url: ${_param:janitor_monkey_base_url}
44 simianarmy.janitor.enabled: ${_param:janitor_monkey_enabled}
45 simianarmy.janitor.leashed: ${_param:janitor_monkey_dryrun_mode}
46 simianarmy.calendar.isMonkeyTime: true
47 simianarmy.janitor.resources.sdb.domain: ${_param:janitor_monkey_mongodb_db}
48 simianarmy.client.cloudfire.cis.hosts: ${_param:janitor_monkey_elasticsearch}
49 simianarmy.client.cloudfire.region: ${_param:janitor_monkey_cloudfire_region}
50 simianarmy.client.cloudfire.cis.clustername: ${_param:janitor_monkey_cis_clustername}
51 simianarmy.client.cloudfire.identityEndpoint: ${_param:janitor_monkey_openstack:auth_url}
52 simianarmy.client.cloudfire.accountKey: ${_param:janitor_monkey_openstack:username}
53 simianarmy.client.cloudfire.secretKey: ${_param:janitor_monkey_openstack:password}
54 simianarmy.client.cloudfire.domain: ${_param:janitor_monkey_openstack:project_domain_name}
55 simianarmy.client.cloudfire.project: ${_param:janitor_monkey_openstack:project_name}
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030056 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030057 cleanup-service-mongodb:
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030058 image: ${_param:docker_image_mongodb}
59 deploy:
60 replicas: ${_param:docker_janitor_monkey_replicas}
61 restart_policy:
62 condition: any
63 ports:
64 - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port}
65 volumes:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030066 - /srv/volumes/mongodb:/data/db
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030067 cleanup-service-api:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030068 image: ${_param:docker_image_janitor_monkey}
69 deploy:
70 replicas: ${_param:docker_janitor_monkey_replicas}
71 restart_policy:
72 condition: any
73 ports:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030074 - ${_param:haproxy_janitor_monkey_exposed_port}:${_param:janitor_monkey_bind_port}
75 network:
76 default:
77 external:
78 name: oss_backend