blob: 2e5698ad25e73272f5930948db6ac51c016aa602 [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}
Vladislav Naumov2a0b7a12017-08-03 12:56:32 +030025 janitor_monkey_instance_age_threshold: 15
26 janitor_monkey_notification_oss_url: http://${_param:haproxy_pushkin_bind_host}:${_param:haproxy_pushkin_bind_port}/post_notification_json
27 janitor_monkey_notification_oss_login_id: 12
28 janitor_monkey_notification_oss_application_id: 2
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030029 janitor_monkey_openstack:
30 project_domain_name: default
31 project_name: admin
Vladislav Naumovd5eeceb2017-09-13 11:07:44 +030032 auth_url: http://yourcloud.com:5000/v3/auth/tokens
33 username: admin
34 password: password
Vladislav Naumov7d6938e2017-09-12 12:50:46 +030035 ssl_verify: False
Vladislav Naumov731eb682017-09-26 11:56:44 +030036 source_credentials: /srv/volumes/rundeck/storage/content/cis/openstack
37 service_credentials: /opt/os_creds
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030038 docker:
39 client:
40 stack:
41 janitor_monkey:
42 environment:
43 MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username}
44 MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password}
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030045 simianarmy.recorder.mongodb.host: ${_param:janitor_monkey_mongodb_host}
46 simianarmy.recorder.mongodb.port: ${_param:janitor_monkey_mongodb_port}
47 simianarmy.recorder.mongodb.database: ${_param:janitor_monkey_mongodb_db}
48 simianarmy.recorder.mongodb.user: ${_param:janitor_monkey_mongodb_username}
49 simianarmy.recorder.mongodb.password: ${_param:janitor_monkey_mongodb_password}
50 simianarmy.base.url: ${_param:janitor_monkey_base_url}
51 simianarmy.janitor.enabled: ${_param:janitor_monkey_enabled}
52 simianarmy.janitor.leashed: ${_param:janitor_monkey_dryrun_mode}
53 simianarmy.calendar.isMonkeyTime: true
54 simianarmy.janitor.resources.sdb.domain: ${_param:janitor_monkey_mongodb_db}
55 simianarmy.client.cloudfire.cis.hosts: ${_param:janitor_monkey_elasticsearch}
56 simianarmy.client.cloudfire.region: ${_param:janitor_monkey_cloudfire_region}
57 simianarmy.client.cloudfire.cis.clustername: ${_param:janitor_monkey_cis_clustername}
58 simianarmy.client.cloudfire.identityEndpoint: ${_param:janitor_monkey_openstack:auth_url}
59 simianarmy.client.cloudfire.accountKey: ${_param:janitor_monkey_openstack:username}
60 simianarmy.client.cloudfire.secretKey: ${_param:janitor_monkey_openstack:password}
61 simianarmy.client.cloudfire.domain: ${_param:janitor_monkey_openstack:project_domain_name}
62 simianarmy.client.cloudfire.project: ${_param:janitor_monkey_openstack:project_name}
Vladislav Naumov7d6938e2017-09-12 12:50:46 +030063 simianarmy.client.cloudfire.SSLVerify: ${_param:janitor_monkey_openstack:ssl_verify}
Vladislav Naumov731eb682017-09-26 11:56:44 +030064 simianarmy.client.cloudfire.cafile: ${_param:janitor_monkey_openstack:service_credentials}/cert.pem
Vladislav Naumov2a0b7a12017-08-03 12:56:32 +030065 simianarmy.janitor.rule.stoppedInstanceRule.instanceAgeThreshold: ${_param:janitor_monkey_instance_age_threshold}
66 simianarmy.janitor.notification.oss.url: ${_param:janitor_monkey_notification_oss_url}
67 simianarmy.janitor.notification.oss.login_id: ${_param:janitor_monkey_notification_oss_login_id}
68 simianarmy.janitor.notification.oss.application_id: ${_param:janitor_monkey_notification_oss_application_id}
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030069 service:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030070 cleanup-service-mongodb:
Volodymyr Stoiko9f47aff2017-06-06 16:47:10 +030071 image: ${_param:docker_image_mongodb}
72 deploy:
73 replicas: ${_param:docker_janitor_monkey_replicas}
74 restart_policy:
75 condition: any
76 ports:
77 - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port}
78 volumes:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030079 - /srv/volumes/mongodb:/data/db
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030080 cleanup-service-api:
Volodymyr Stoiko20cfe392017-06-21 10:44:58 +030081 image: ${_param:docker_image_janitor_monkey}
82 deploy:
83 replicas: ${_param:docker_janitor_monkey_replicas}
84 restart_policy:
85 condition: any
86 ports:
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030087 - ${_param:haproxy_janitor_monkey_exposed_port}:${_param:janitor_monkey_bind_port}
Vladislav Naumov4d4f09b2017-09-06 16:22:11 +030088 volumes:
Vladislav Naumov731eb682017-09-26 11:56:44 +030089 - ${_param:janitor_monkey_openstack:source_credentials}:${_param:janitor_monkey_openstack:service_credentials}:ro
Volodymyr Stoiko1ae92ce2017-08-11 11:45:12 +030090 network:
91 default:
92 external:
93 name: oss_backend