blob: 4793b1ac8eef4d7c570feb7723eef5c64b859ad5 [file] [log] [blame]
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +03001parameters:
2 _param:
azvyagintsev16ca7ce2018-08-21 17:20:33 +03003 mcp_docker_registry: 'docker-prod-local.artifactory.mirantis.com'
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +03004 docker_janitor_monkey_replicas: 1
5 docker_image_mongodb: library/mongo:3.4
6 docker_mongodb_admin_username: admin
7 docker_mongodb_admin_password: password
azvyagintsev16ca7ce2018-08-21 17:20:33 +03008 docker_image_janitor_monkey: ${_param:mcp_docker_registry}/mirantis/oss/janitor-monkey
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +03009 janitor_monkey_bind_host: cleanup-service-api
10 janitor_monkey_bind_port: 8080
11 janitor_monkey_ssl:
12 enabled: false
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030013 janitor_monkey_enabled: true
14 janitor_monkey_dryrun_mode: false
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030015 janitor_monkey_mongodb_host: cleanup-service-mongodb
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030016 janitor_monkey_mongodb_port: ${_param:haproxy_mongodb_bind_port}
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030017 mongodb_ssl:
18 enabled: false
19 janitor_monkey_base_url: http://${_param:janitor_monkey_mongodb_host}:${_param:janitor_monkey_mongodb_port}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030020 janitor_monkey_mongodb_db: mcp_cloud
21 janitor_monkey_mongodb_username: janitor
22 janitor_monkey_mongodb_password: password
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030023 janitor_monkey_elasticsearch: ${_param:elasticsearch_bind_host}:${_param:elasticsearch_binary_bind_port}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030024 janitor_monkey_cloudfire_region: RegionOne
25 janitor_monkey_cis_clustername: ${_param:elasticsearch_cluster_name}
Vladislav Naumov2a0b7a12017-08-03 12:56:32 +030026 janitor_monkey_instance_age_threshold: 15
27 janitor_monkey_notification_oss_url: http://${_param:haproxy_pushkin_bind_host}:${_param:haproxy_pushkin_bind_port}/post_notification_json
28 janitor_monkey_notification_oss_login_id: 12
29 janitor_monkey_notification_oss_application_id: 2
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030030 janitor_monkey_openstack:
31 project_domain_name: default
32 project_name: admin
Vladislav Naumovd5eeceb2017-09-13 11:07:44 +030033 auth_url: http://yourcloud.com:5000/v3/auth/tokens
34 username: admin
35 password: password
Vnaumovb2865a12017-12-13 19:34:18 +030036 endpoint_type: public
Vnaumov1f1c0302018-01-10 17:05:51 +040037 ssl_verify: False
38 source_credentials_dir: /srv/volumes/rundeck/storage
39 destination_credentials_dir: /opt/os_creds
40 cacert_path: ${_param:janitor_monkey_openstack:destination_credentials_dir}/content/keys/cis/openstack/cert.pem
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030041 docker:
42 client:
43 stack:
44 janitor_monkey:
45 environment:
46 MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username}
47 MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030048 simianarmy.recorder.mongodb.host: ${_param:janitor_monkey_mongodb_host}
49 simianarmy.recorder.mongodb.port: ${_param:janitor_monkey_mongodb_port}
50 simianarmy.recorder.mongodb.database: ${_param:janitor_monkey_mongodb_db}
51 simianarmy.recorder.mongodb.user: ${_param:janitor_monkey_mongodb_username}
52 simianarmy.recorder.mongodb.password: ${_param:janitor_monkey_mongodb_password}
53 simianarmy.base.url: ${_param:janitor_monkey_base_url}
54 simianarmy.janitor.enabled: ${_param:janitor_monkey_enabled}
55 simianarmy.janitor.leashed: ${_param:janitor_monkey_dryrun_mode}
56 simianarmy.calendar.isMonkeyTime: true
57 simianarmy.janitor.resources.sdb.domain: ${_param:janitor_monkey_mongodb_db}
58 simianarmy.client.cloudfire.cis.hosts: ${_param:janitor_monkey_elasticsearch}
59 simianarmy.client.cloudfire.region: ${_param:janitor_monkey_cloudfire_region}
60 simianarmy.client.cloudfire.cis.clustername: ${_param:janitor_monkey_cis_clustername}
61 simianarmy.client.cloudfire.identityEndpoint: ${_param:janitor_monkey_openstack:auth_url}
Vnaumovb2865a12017-12-13 19:34:18 +030062 simianarmy.client.cloudfire.identityEndpointType: ${_param:janitor_monkey_openstack:endpoint_type}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030063 simianarmy.client.cloudfire.accountKey: ${_param:janitor_monkey_openstack:username}
64 simianarmy.client.cloudfire.secretKey: ${_param:janitor_monkey_openstack:password}
65 simianarmy.client.cloudfire.domain: ${_param:janitor_monkey_openstack:project_domain_name}
66 simianarmy.client.cloudfire.project: ${_param:janitor_monkey_openstack:project_name}
Vladislav Naumov7d6938e2017-09-12 12:50:46 +030067 simianarmy.client.cloudfire.SSLVerify: ${_param:janitor_monkey_openstack:ssl_verify}
Vnaumov1f1c0302018-01-10 17:05:51 +040068 simianarmy.client.cloudfire.cafile: ${_param:janitor_monkey_openstack:cacert_path}
Vladislav Naumov2a0b7a12017-08-03 12:56:32 +030069 simianarmy.janitor.rule.stoppedInstanceRule.instanceAgeThreshold: ${_param:janitor_monkey_instance_age_threshold}
70 simianarmy.janitor.notification.oss.url: ${_param:janitor_monkey_notification_oss_url}
71 simianarmy.janitor.notification.oss.login_id: ${_param:janitor_monkey_notification_oss_login_id}
72 simianarmy.janitor.notification.oss.application_id: ${_param:janitor_monkey_notification_oss_application_id}
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030073 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030074 cleanup-service-mongodb:
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030075 image: ${_param:docker_image_mongodb}
76 deploy:
77 replicas: ${_param:docker_janitor_monkey_replicas}
78 restart_policy:
79 condition: any
80 ports:
81 - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port}
82 volumes:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030083 - /srv/volumes/mongodb:/data/db
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030084 cleanup-service-api:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030085 image: ${_param:docker_image_janitor_monkey}
86 deploy:
87 replicas: ${_param:docker_janitor_monkey_replicas}
88 restart_policy:
89 condition: any
90 ports:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030091 - ${_param:haproxy_janitor_monkey_exposed_port}:${_param:janitor_monkey_bind_port}
Vladislav Naumov4d4f09b2017-09-06 16:22:11 +030092 volumes:
Vnaumov1f1c0302018-01-10 17:05:51 +040093 - ${_param:janitor_monkey_openstack:source_credentials_dir}:${_param:janitor_monkey_openstack:destination_credentials_dir}:ro
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030094 network:
95 default:
96 external:
97 name: oss_backend