b401a90254
Allows the user to configure neutron_plugin_agent value for Ansible. Current allowed values are openvswitch and linuxbridge. Implements: blueprint ansible-neutron-linuxbridge Change-Id: I0572464a5459d2f9da09b6da22db16e240511f99
139 lines
6.8 KiB
YAML
139 lines
6.8 KiB
YAML
---
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-server"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/neutron.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/neutron.conf"
|
|
when: inventory_hostname in groups['neutron-server']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-server"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/ml2_conf.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/ml2_conf.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/ml2_conf.ini"
|
|
when: inventory_hostname in groups['neutron-server']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-agents"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/neutron.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/neutron.conf"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-agents"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/dhcp_agent.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/dhcp_agent.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/dhcp_agent.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/dhcp_agent.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/dhcp_agent.ini"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- name: Copying over config(s)
|
|
template:
|
|
src: "dnsmasq.conf.j2"
|
|
dest: "{{ node_config_directory }}/neutron-agents/dnsmasq.conf"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-agents"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/l3_agent.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/l3_agent.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/l3_agent.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/l3_agent.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/l3_agent.ini"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-agents"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/metadata_agent.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/metadata_agent.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/metadata_agent.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/metadata_agent.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/metadata_agent.ini"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-agents"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/ml2_conf.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/ml2_conf.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/ml2_conf.ini"
|
|
when: inventory_hostname in groups['neutron-agents']
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-{{ neutron_plugin_agent }}-agent"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/neutron.conf.j2"
|
|
- "/etc/kolla/config/global.conf"
|
|
- "/etc/kolla/config/database.conf"
|
|
- "/etc/kolla/config/messaging.conf"
|
|
- "/etc/kolla/config/{{ project_name }}.conf"
|
|
- "/etc/kolla/config/{{ project_name }}/{{ service_name }}.conf"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_global"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_database"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_messaging"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ project_name }}.conf_augment"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/{{ service_name }}.conf_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/neutron.conf"
|
|
when: (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|
|
|
|
- include: ../../config.yml
|
|
vars:
|
|
service_name: "neutron-{{ neutron_plugin_agent }}-agent"
|
|
config_source:
|
|
- "roles/{{ project_name }}/templates/ml2_conf.ini.j2"
|
|
- "/etc/kolla/config/{{ project_name }}/ml2_conf.ini"
|
|
config_template_dest:
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_minimal"
|
|
- "{{ node_templates_directory }}/{{ service_name }}/ml2_conf.ini_augment"
|
|
config_dest: "{{ node_config_directory }}/{{ service_name }}/ml2_conf.ini"
|
|
when: (inventory_hostname in groups['compute'] or inventory_hostname in groups['neutron-agents'])
|