8a0740df97
Implement OVN Ansible role. Implements: blueprint ovn-controller-neutron-ansible Depends-On: https://review.opendev.org/713422 Change-Id: Icd425dea85d58db49c838839d8f0b864b4a89a78
229 lines
7.8 KiB
YAML
229 lines
7.8 KiB
YAML
---
|
|
- name: Restart neutron-server container
|
|
vars:
|
|
service_name: "neutron-server"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-openvswitch-agent container
|
|
vars:
|
|
service_name: "neutron-openvswitch-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
environment: "{{ service.environment }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-openvswitch-agent-xenapi container
|
|
vars:
|
|
service_name: "neutron-openvswitch-agent-xenapi"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart fake neutron-openvswitch-agent container
|
|
vars:
|
|
service_name: "neutron-openvswitch-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
with_sequence: "start=1 end={{ num_nova_fake_per_node }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-linuxbridge-agent container
|
|
vars:
|
|
service_name: "neutron-linuxbridge-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
environment: "{{ service.environment }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-dhcp-agent container
|
|
vars:
|
|
service_name: "neutron-dhcp-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-l3-agent container
|
|
vars:
|
|
service_name: "neutron-l3-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
environment: "{{ service.environment }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-sriov-agent container
|
|
vars:
|
|
service_name: "neutron-sriov-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-metadata-agent container
|
|
vars:
|
|
service_name: "neutron-metadata-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-ovn-metadata-agent container
|
|
vars:
|
|
service_name: "neutron-ovn-metadata-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-bgp-dragent container
|
|
vars:
|
|
service_name: "neutron-bgp-dragent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-infoblox-ipam-agent container
|
|
vars:
|
|
service_name: "neutron-infoblox-ipam-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart neutron-metering-agent container
|
|
vars:
|
|
service_name: "neutron-metering-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes|reject('equalto', '')|list }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|
|
|
|
- name: Restart ironic-neutron-agent container
|
|
vars:
|
|
service_name: "ironic-neutron-agent"
|
|
service: "{{ neutron_services[service_name] }}"
|
|
become: true
|
|
kolla_docker:
|
|
action: "recreate_or_restart_container"
|
|
common_options: "{{ docker_common_options }}"
|
|
name: "{{ service.container_name }}"
|
|
image: "{{ service.image }}"
|
|
volumes: "{{ service.volumes }}"
|
|
dimensions: "{{ service.dimensions }}"
|
|
privileged: "{{ service.privileged | default(False) }}"
|
|
when:
|
|
- kolla_action != "config"
|