blob: be2995d7df09ea39da89fb1684a706ede634055e [file] [log] [blame]
---
- name: Update planet cache
import_playbook: apigee-planet-cache.yml
tags: ['cache']
vars:
target_hosts: cfmirror,ms
- name: Install and configure OS pre-requisites for mirror
hosts: cfmirror
gather_facts: no
tags: ['os']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-os-epel, tags: ['epel'] }
- { role: apigee-opdk-setup-os-minimum, tags: ['os-minimum'] }
- { role: apigee-opdk-setup-os-limits, tags: ['apigee-tuning'] }
- { role: apigee-opdk-setup-selinux-disable, tags: ['selinux'] }
- { role: apigee-opdk-shutdown-iptables, tags: ['iptables'] }
- { role: apigee-server-restart, tags: ['restart-server'], when: (selinux_disabled.changed is defined and selinux_disabled.changed) or (iptables_disabled is defined and not iptables_disabled) or (force_restart is defined and force_restart) }
- { role: apigee-opdk-setup-os-common, tags: ['os-common'] }
- { role: apigee-opdk-setup-openjdk, tags: ['openjdk'], jdk_version: '1.8' }
- { role: apigee-opdk-ssh-user, tags: ['ssh-root'] }
- name: Install Apigee pre-requisites
import_playbook: apigee-pre-requisites-bootstrap.yml
tags: ['bootstrap']
vars:
target_hosts: cfmirror
- name: Create apigee mirror archive
hosts: cfmirror
gather_facts: no
tags: ['create']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-bootstrap-create-archive, tags: ['create-archive'] }
- name: Download apigee mirror archive
hosts: cfmirror
gather_facts: no
tags: ['download']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-bootstrap-download-archive, tags: ['download-archive'] }
- name: Upload apigee mirror archive
hosts: cf-000,cf-001,cf-002,cf-003,cf-004
# hosts: cfmirror
gather_facts: no
tags: ['upload']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-bootstrap-upload-archive, tags: ['upload-archive'] }
- name: Install apigee mirror archive
hosts: cf-000,cf-001,cf-002,cf-003,cf-004
# hosts: cfmirror
gather_facts: no
tags: ['install']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-bootstrap-archive-installer, tags: ['install-archive'] }
- name: Expose apigee mirror web server
hosts: cfmirror
gather_facts: no
tags: ['nginx']
vars_files:
- ~/.apigee-secure/credentials.yml
- ~/.apigee/custom-properties.yml
roles:
- { role: apigee-opdk-setup-mirror-nginx, tags: ['nginx-mirror'] }
- name: Download logs and configs
tags: ['logs']
import_playbook: apigee-log-config-files.yml
vars:
target_hosts: cfmirror