blob: 044a8b4fae7e512fecad513f1127483c30d6ae8f [file] [log] [blame] [edit]
---
- name: Update the ansible cache
hosts: planet
gather_facts: no
tags: ['cache']
vars_files:
- ~/.apigee/credentials.yml
roles:
- apigee-opdk-setup-default-settings
- name: Backup zookeeper
include: opdk-backup.yml
tags: ['backup', 'backup-zookeeper']
vars:
component_name: 'apigee-zookeeper'
- name: Backup cassandra
include: opdk-backup.yml
tags: ['backup', 'backup-cassandra']
vars:
component_name: 'apigee-cassandra'
- name: Set message processor consistencylevel=TWO
include: consistency.yml
tags: ['two', 'two-rmp']
vars:
hosts: rmp
consistency_level: 'TWO'
property_file: 'message-processor'
enable_cache: 'false'
- name: Set management server consistencylevel=TWO
include: consistency.yml
tags: ['two', 'two-ms']
vars:
hosts: ms
consistency_level: 'TWO'
property_file: 'management-server'
enable_cache: 'false'
- name: Rolling restart of RMP
include: rolling-restart.yml
vars:
hosts: 'rmp'
component: 'edge-message-processor'
self_server_types: ['mp']
tags: ['restart','restart-rmp']
- name: Rolling restart of Management Server
include: rolling-restart.yml
vars:
hosts: 'ms'
component: 'edge-management-server'
self_server_types: ['ms']
tags: ['restart','restart-ms']
- name: Execute nodetool repair on Cassandra nodes after updating to verify data
include: repair.yml
tags: ['repair']
- name: Change cassandra replication factor
gather_facts: no
hosts: ds[0]
tags: ['update-replication-factor']
serial: 1
vars:
cassandra_keyspaces:
- auth
- cache
- devconnect
- user_settings
- apprepo
- kms
- scheduler
- ax_custom_report_model
- audit
- aries
- apimodel
- edgenotification
- analytics
- keyvaluemap
- counter
roles:
- { role: apigee-opdk-cassandra-change-replication-factor, keyspaces: '{{ cassandra_keyspaces }}' }
- name: Execute nodetool repair on Cassandra nodes after updating to verify data
include: repair.yml
- name: Set message processor consistencylevel=LOCAL_QUORUM
include: consistency.yml
tags: ['local-quorum', 'local-quorum-rmp']
vars:
hosts: rmp
consistency_level: 'LOCAL_QUORUM'
property_file: 'message-processor'
enable_cache: 'false'
- name: Set management server consistencylevel=LOCAL_QUORUM
include: consistency.yml
tags: ['local-quorum', 'local-quorum-ms']
vars:
hosts: ms
consistency_level: 'LOCAL_QUORUM'
property_file: 'management-server'
enable_cache: 'false'
- name: Rolling restart of RMP
include: rolling-restart.yml
vars:
hosts: 'rmp'
component: 'edge-message-processor'
self_server_types: ['mp']
- name: Rolling restart of Management Server
include: rolling-restart.yml
vars:
hosts: 'ms'
component: 'edge-management-server'
self_server_types: ['ms']
- name: Download logs and configs from dc-1-ds
include: opdk-setup-log-files.yml
vars:
hosts: dc-1-ds
tags: ['logs']
- name: Download logs and configs from dc-1-ms
include: opdk-setup-log-files.yml
vars:
hosts: dc-1-ms
tags: ['logs']
- name: Download logs and configs from dc-1-rmp
include: opdk-setup-log-files.yml
vars:
hosts: dc-1-rmp
tags: ['logs']
- name: Download logs and configs from dc-2-ds
include: opdk-setup-log-files.yml
vars:
hosts: dc-2-ds
tags: ['logs']
- name: Download logs and configs from dc-2-ms
include: opdk-setup-log-files.yml
vars:
hosts: dc-2-ms
tags: ['logs']
- name: Download logs and configs from dc-2-rmp
include: opdk-setup-log-files.yml
vars:
hosts: dc-2-rmp
tags: ['logs']