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:
|
||||
- neutron-config
|
||||
|
||||
- include: dragonflow.yml
|
||||
when: neutron_plugin_type == 'ml2.dragonflow'
|
||||
# Include provider specific config(s)
|
||||
- include: "{{ item }}"
|
||||
with_first_found:
|
||||
- files:
|
||||
- "{{ neutron_plugin_type.split('.')[-1] }}_config.yml"
|
||||
skip: true
|
||||
paths:
|
||||
- "providers/"
|
||||
tags:
|
||||
- neutron-install
|
||||
|
||||
|
@ -68,13 +68,8 @@
|
||||
config_type: "ini"
|
||||
notify:
|
||||
- Restart neutron services
|
||||
when: >
|
||||
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'
|
||||
when:
|
||||
- neutron_services['neutron-dhcp-agent']['group'] in group_names
|
||||
|
||||
- name: Generate neutron agent only Config
|
||||
config_template:
|
||||
@ -115,11 +110,6 @@
|
||||
notify:
|
||||
- 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
|
||||
copy:
|
||||
src: "post-up-metadata-checksum"
|
||||
|
Loading…
x
Reference in New Issue
Block a user