| --- |
| - name: Update the ansible cache |
| hosts: planet |
| gather_facts: no |
| tags: ['cache'] |
| vars_files: |
| - ~/.apigee/credentials.yml |
| roles: |
| - apigee-opdk-setup-default-settings |
| |
| - name: Create backup prior to doing any work |
| include: backup.yml |
| tags: |
| - 'backup' |
| |
| - name: Rolling restart of RMP and MS |
| hosts: rmp,ms |
| gather_facts: no |
| serial: 1 |
| vars_files: |
| - ~/.apigee/credentials.yml |
| roles: |
| - { role: apigee-opdk-stop-components, tags: ['pre_restart', 'pre_stop', 'stop', 'restart'] } |
| - { role: apigee-opdk-start-components, tags: ['pre_restart', 'pre_start','start', 'restart'], component_start_delay: '{{ start_delay | default(0) }}' } |
| |
| - name: Change cassandra replication factor |
| gather_facts: no |
| hosts: ds[0] |
| serial: 1 |
| vars_files: |
| - ~/.apigee/credentials.yml |
| 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, tags: ['update'], keyspaces: '{{ cassandra_keyspaces }}' } |
| |
| - name: Execute nodetool repair on Cassandra nodes |
| hosts: ds |
| gather_facts: no |
| serial: 1 |
| vars_files: |
| - ~/.apigee/credentials.yml |
| roles: |
| - { role: apigee-opdk-cassandra-repair, tags: ['repair'] } |
| |
| - name: Rolling restart of RMPs and MS |
| hosts: rmp,ms |
| gather_facts: no |
| serial: 1 |
| vars_files: |
| - ~/.apigee/credentials.yml |
| roles: |
| - { role: apigee-opdk-stop-components, tags: ['post_restart', 'post_stop'] } |
| - { role: apigee-opdk-start-components, tags: ['post_restart', 'post_start'], component_start_delay: '{{ start_delay | default(0) }}' } |
| |
| - name: Rolling restart of remaining components |
| hosts: ms,rmp,qpid,pg |
| gather_facts: no |
| serial: 1 |
| roles: |
| - { role: apigee-opdk-stop-components, tags: ['stop'] } |
| - { role: apigee-opdk-start-components, tags: ['start'], component_start_delay: '{{ start_delay | default(0) }}' } |
| tags: |
| - restart |
| |
| - 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 |