Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 1 | parameters: |
| 2 | _param: |
| 3 | docker_janitor_monkey_replicas: 1 |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 4 | docker_mongodb_admin_username: admin |
| 5 | docker_mongodb_admin_password: password |
azvyagintsev | 16ca7ce | 2018-08-21 17:20:33 +0300 | [diff] [blame] | 6 | docker_image_janitor_monkey: ${_param:mcp_docker_registry}/mirantis/oss/janitor-monkey |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 7 | janitor_monkey_bind_host: cleanup-service-api |
| 8 | janitor_monkey_bind_port: 8080 |
| 9 | janitor_monkey_ssl: |
| 10 | enabled: false |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 11 | janitor_monkey_enabled: true |
| 12 | janitor_monkey_dryrun_mode: false |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 13 | janitor_monkey_mongodb_host: cleanup-service-mongodb |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 14 | janitor_monkey_mongodb_port: ${_param:haproxy_mongodb_bind_port} |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 15 | mongodb_ssl: |
| 16 | enabled: false |
| 17 | janitor_monkey_base_url: http://${_param:janitor_monkey_mongodb_host}:${_param:janitor_monkey_mongodb_port} |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 18 | janitor_monkey_mongodb_db: mcp_cloud |
| 19 | janitor_monkey_mongodb_username: janitor |
| 20 | janitor_monkey_mongodb_password: password |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 21 | janitor_monkey_elasticsearch: ${_param:elasticsearch_bind_host}:${_param:elasticsearch_binary_bind_port} |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 22 | janitor_monkey_cloudfire_region: RegionOne |
| 23 | janitor_monkey_cis_clustername: ${_param:elasticsearch_cluster_name} |
Vladislav Naumov | 2a0b7a1 | 2017-08-03 12:56:32 +0300 | [diff] [blame] | 24 | janitor_monkey_instance_age_threshold: 15 |
| 25 | janitor_monkey_notification_oss_url: http://${_param:haproxy_pushkin_bind_host}:${_param:haproxy_pushkin_bind_port}/post_notification_json |
| 26 | janitor_monkey_notification_oss_login_id: 12 |
| 27 | janitor_monkey_notification_oss_application_id: 2 |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 28 | janitor_monkey_openstack: |
| 29 | project_domain_name: default |
| 30 | project_name: admin |
Vladislav Naumov | d5eeceb | 2017-09-13 11:07:44 +0300 | [diff] [blame] | 31 | auth_url: http://yourcloud.com:5000/v3/auth/tokens |
| 32 | username: admin |
| 33 | password: password |
Vnaumov | b2865a1 | 2017-12-13 19:34:18 +0300 | [diff] [blame] | 34 | endpoint_type: public |
Vnaumov | 1f1c030 | 2018-01-10 17:05:51 +0400 | [diff] [blame] | 35 | ssl_verify: False |
| 36 | source_credentials_dir: /srv/volumes/rundeck/storage |
| 37 | destination_credentials_dir: /opt/os_creds |
| 38 | cacert_path: ${_param:janitor_monkey_openstack:destination_credentials_dir}/content/keys/cis/openstack/cert.pem |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 39 | docker: |
| 40 | client: |
| 41 | stack: |
| 42 | janitor_monkey: |
| 43 | environment: |
| 44 | MONGO_INITDB_ROOT_USERNAME: ${_param:docker_mongodb_admin_username} |
| 45 | MONGO_INITDB_ROOT_PASSWORD: ${_param:docker_mongodb_admin_password} |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 46 | simianarmy.recorder.mongodb.host: ${_param:janitor_monkey_mongodb_host} |
| 47 | simianarmy.recorder.mongodb.port: ${_param:janitor_monkey_mongodb_port} |
| 48 | simianarmy.recorder.mongodb.database: ${_param:janitor_monkey_mongodb_db} |
| 49 | simianarmy.recorder.mongodb.user: ${_param:janitor_monkey_mongodb_username} |
| 50 | simianarmy.recorder.mongodb.password: ${_param:janitor_monkey_mongodb_password} |
| 51 | simianarmy.base.url: ${_param:janitor_monkey_base_url} |
| 52 | simianarmy.janitor.enabled: ${_param:janitor_monkey_enabled} |
| 53 | simianarmy.janitor.leashed: ${_param:janitor_monkey_dryrun_mode} |
| 54 | simianarmy.calendar.isMonkeyTime: true |
| 55 | simianarmy.janitor.resources.sdb.domain: ${_param:janitor_monkey_mongodb_db} |
| 56 | simianarmy.client.cloudfire.cis.hosts: ${_param:janitor_monkey_elasticsearch} |
| 57 | simianarmy.client.cloudfire.region: ${_param:janitor_monkey_cloudfire_region} |
| 58 | simianarmy.client.cloudfire.cis.clustername: ${_param:janitor_monkey_cis_clustername} |
| 59 | simianarmy.client.cloudfire.identityEndpoint: ${_param:janitor_monkey_openstack:auth_url} |
Vnaumov | b2865a1 | 2017-12-13 19:34:18 +0300 | [diff] [blame] | 60 | simianarmy.client.cloudfire.identityEndpointType: ${_param:janitor_monkey_openstack:endpoint_type} |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 61 | simianarmy.client.cloudfire.accountKey: ${_param:janitor_monkey_openstack:username} |
| 62 | simianarmy.client.cloudfire.secretKey: ${_param:janitor_monkey_openstack:password} |
| 63 | simianarmy.client.cloudfire.domain: ${_param:janitor_monkey_openstack:project_domain_name} |
| 64 | simianarmy.client.cloudfire.project: ${_param:janitor_monkey_openstack:project_name} |
Vladislav Naumov | 7d6938e | 2017-09-12 12:50:46 +0300 | [diff] [blame] | 65 | simianarmy.client.cloudfire.SSLVerify: ${_param:janitor_monkey_openstack:ssl_verify} |
Vnaumov | 1f1c030 | 2018-01-10 17:05:51 +0400 | [diff] [blame] | 66 | simianarmy.client.cloudfire.cafile: ${_param:janitor_monkey_openstack:cacert_path} |
Vladislav Naumov | 2a0b7a1 | 2017-08-03 12:56:32 +0300 | [diff] [blame] | 67 | simianarmy.janitor.rule.stoppedInstanceRule.instanceAgeThreshold: ${_param:janitor_monkey_instance_age_threshold} |
| 68 | simianarmy.janitor.notification.oss.url: ${_param:janitor_monkey_notification_oss_url} |
| 69 | simianarmy.janitor.notification.oss.login_id: ${_param:janitor_monkey_notification_oss_login_id} |
| 70 | simianarmy.janitor.notification.oss.application_id: ${_param:janitor_monkey_notification_oss_application_id} |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 71 | service: |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 72 | cleanup-service-mongodb: |
azvyagintsev | 52cd5c2 | 2018-09-19 15:01:22 +0300 | [diff] [blame^] | 73 | image: library/mongo:3.4 |
Volodymyr Stoiko | 9f47aff | 2017-06-06 16:47:10 +0300 | [diff] [blame] | 74 | deploy: |
| 75 | replicas: ${_param:docker_janitor_monkey_replicas} |
| 76 | restart_policy: |
| 77 | condition: any |
| 78 | ports: |
| 79 | - ${_param:haproxy_mongodb_exposed_port}:${_param:haproxy_mongodb_bind_port} |
| 80 | volumes: |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 81 | - /srv/volumes/mongodb:/data/db |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 82 | cleanup-service-api: |
Volodymyr Stoiko | 20cfe39 | 2017-06-21 10:44:58 +0300 | [diff] [blame] | 83 | image: ${_param:docker_image_janitor_monkey} |
| 84 | deploy: |
| 85 | replicas: ${_param:docker_janitor_monkey_replicas} |
| 86 | restart_policy: |
| 87 | condition: any |
| 88 | ports: |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 89 | - ${_param:haproxy_janitor_monkey_exposed_port}:${_param:janitor_monkey_bind_port} |
Vladislav Naumov | 4d4f09b | 2017-09-06 16:22:11 +0300 | [diff] [blame] | 90 | volumes: |
Vnaumov | 1f1c030 | 2018-01-10 17:05:51 +0400 | [diff] [blame] | 91 | - ${_param:janitor_monkey_openstack:source_credentials_dir}:${_param:janitor_monkey_openstack:destination_credentials_dir}:ro |
Volodymyr Stoiko | 1ae92ce | 2017-08-11 11:45:12 +0300 | [diff] [blame] | 92 | network: |
| 93 | default: |
| 94 | external: |
| 95 | name: oss_backend |