V1.8 to V1.11
Steps to migrate REGARDS from version 1.8 to 1.11
- Shutdown REGARDS using the playbook
ansible-playbook -i [...] regards-shutdown.yml [...]
- Download last playbook version and move your inventory inside the new playbook
- Edit your inventory file
group_vars/all/main.yml
:
# Replace
version: 1.8.1
# Into
version: 1.11.1
info
When this guide has been written, last version was 1.11.1. Check if there is an updated version available here
- Edit your inventory file
group_vars/regards_nodes/main.yml
:
# Remove property legacy: true from elasticsearch and elasticsearch_logs
# Before
group_docker_cots:
elasticsearch:
tag: "{{ group_docker_tags.cots }}"
legacy: true
# elasticsearch_logs:
# tag: "{{ group_docker_tags.cots }}"
# legacy: true
# After
group_docker_cots:
elasticsearch:
tag: "{{ group_docker_tags.cots }}"
# elasticsearch_logs:
# tag: "{{ group_docker_tags.cots }}"
# Remove property legacy_spring: true
# Before
group_config_mservices:
legacy_spring: true
init_project: "{{ global_regards.project_name }}"
# After
group_config_mservices:
init_project: "{{ global_regards.project_name }}"
- Remove files from RabbitMQ and Elasticsearch on every node:
cd /<path/to/regards>/workspace/
sudo rm -rf elasticsearch/* rabbitmq/*
- Execute the playbook file
regards.yml
ansible-playbook -i [...] regards.yml [...]