Improve the execution time
This change moves the extra providers into a provider directory. These configs have a standardized naming convention which will only include the files needed when using a specific provider. This improves the execution time by never loading tasks that are not needed. Change-Id: I8ff376e878e83495c3ba07cf7c44f86c363a6be7 Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
477fae8e5c
commit
ac71bb428e
@ -63,8 +63,14 @@
|
|||||||
tags:
|
tags:
|
||||||
- neutron-config
|
- neutron-config
|
||||||
|
|
||||||
- include: dragonflow.yml
|
# Include provider specific config(s)
|
||||||
when: neutron_plugin_type == 'ml2.dragonflow'
|
- include: "{{ item }}"
|
||||||
|
with_first_found:
|
||||||
|
- files:
|
||||||
|
- "{{ neutron_plugin_type.split('.')[-1] }}_config.yml"
|
||||||
|
skip: true
|
||||||
|
paths:
|
||||||
|
- "providers/"
|
||||||
tags:
|
tags:
|
||||||
- neutron-install
|
- neutron-install
|
||||||
|
|
||||||
|
@ -68,13 +68,8 @@
|
|||||||
config_type: "ini"
|
config_type: "ini"
|
||||||
notify:
|
notify:
|
||||||
- Restart neutron services
|
- Restart neutron services
|
||||||
when: >
|
when:
|
||||||
neutron_services['neutron-dhcp-agent']['group'] in group_names
|
- neutron_services['neutron-dhcp-agent']['group'] in group_names
|
||||||
|
|
||||||
- name: Setup Calico config
|
|
||||||
include: calico_config.yml
|
|
||||||
static: no
|
|
||||||
when: neutron_plugin_type == 'ml2.calico'
|
|
||||||
|
|
||||||
- name: Generate neutron agent only Config
|
- name: Generate neutron agent only Config
|
||||||
config_template:
|
config_template:
|
||||||
@ -115,11 +110,6 @@
|
|||||||
notify:
|
notify:
|
||||||
- Restart neutron services
|
- Restart neutron services
|
||||||
|
|
||||||
- name: Setup Nuage neutron config
|
|
||||||
include: nuage_neutron_config.yml
|
|
||||||
static: no
|
|
||||||
when: neutron_plugin_type == 'nuage'
|
|
||||||
|
|
||||||
- name: Drop metadata iptables checksum fix
|
- name: Drop metadata iptables checksum fix
|
||||||
copy:
|
copy:
|
||||||
src: "post-up-metadata-checksum"
|
src: "post-up-metadata-checksum"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user