kolla-ansible/ansible/roles/destroy/tasks/cleanup_host.yml
Mark Goddard 5d3ebc0452 octavia: support tenant management network
- bind health manager port to ovs
- create a octavia-interface.service (used for creating health manager
  interface after reboot)
- used for ci, test or poc

Implements: blueprint implement-automatic-deploy-of-octavia

Change-Id: I8ac30dea6c8402d97189c6b05032c608936b0ff2
Co-Authored-By: wu.chunyang <wuchunyang@yovole.com>
2021-03-03 10:20:40 +08:00

41 lines
1.4 KiB
YAML

---
- name: Destroying Kolla host configuration
become: true
script: ../tools/cleanup-host
environment:
enable_haproxy: "{{ enable_haproxy }}"
enable_swift: "{{ enable_swift }}"
elasticsearch_datadir_volume: "{{ elasticsearch_datadir_volume }}"
glance_file_datadir_volume: "{{ glance_file_datadir_volume }}"
nova_instance_datadir_volume: "{{ nova_instance_datadir_volume }}"
gnocchi_metric_datadir_volume: "{{ gnocchi_metric_datadir_volume }}"
influxdb_datadir_volume: "{{ influxdb_datadir_volume }}"
kafka_datadir_volume: "{{ kafka_datadir_volume }}"
kolla_internal_vip_address: "{{ kolla_internal_vip_address }}"
kolla_external_vip_address: "{{ kolla_external_vip_address }}"
kolla_dev_repos_directory: "{{ kolla_dev_repos_directory }}"
destroy_include_dev: "{{ destroy_include_dev }}"
- block:
- name: disable octavia-interface service
service:
name: octavia-interface
enabled: no
state: stopped
failed_when: false
- name: remove octavia-interface service file
file:
path: /etc/systemd/system/octavia-interface.service
state: absent
- name: remove dhclient.conf
file:
path: /etc/dhcp/octavia-dhclient.conf
state: absent
when:
- enable_octavia | bool
- octavia_auto_configure | bool
- octavia_network_type == 'tenant'
- inventory_hostname in groups['octavia-health-manager']