Skip to content
Snippets Groups Projects
Commit 9c4e320d authored by Mark Goddard's avatar Mark Goddard
Browse files

Add support for custom neutron and nova config files

Custom configuration files may be added in
$KAYOBE_CONFIG_PATH/kolla/config/[nova,neutron]/.
parent 288d7dcb
No related branches found
No related tags found
No related merge requests found
...@@ -235,6 +235,7 @@ kolla_enable_glance: "yes" ...@@ -235,6 +235,7 @@ kolla_enable_glance: "yes"
kolla_enable_haproxy: "yes" kolla_enable_haproxy: "yes"
kolla_enable_ironic: "yes" kolla_enable_ironic: "yes"
kolla_enable_neutron: "yes" kolla_enable_neutron: "yes"
kolla_enable_nova: "yes"
kolla_enable_magnum: "no" kolla_enable_magnum: "no"
kolla_enable_murano: "no" kolla_enable_murano: "no"
kolla_enable_sahara: "no" kolla_enable_sahara: "no"
......
...@@ -185,5 +185,7 @@ ...@@ -185,5 +185,7 @@
kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}" kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}"
kolla_extra_nova: "{{ kolla_extra_config.nova | default }}" kolla_extra_nova: "{{ kolla_extra_config.nova | default }}"
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}" kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
kolla_extra_glance_path: "{{ kayobe_config_path }}/kolla/config/glance"
kolla_extra_fluentd_output_path: "{{ kayobe_config_path }}/kolla/config/fluentd/output" kolla_extra_fluentd_output_path: "{{ kayobe_config_path }}/kolla/config/fluentd/output"
kolla_extra_glance_path: "{{ kayobe_config_path }}/kolla/config/glance"
kolla_extra_neutron_path: "{{ kayobe_config_path }}/kolla/config/neutron"
kolla_extra_nova_path: "{{ kayobe_config_path }}/kolla/config/nova"
...@@ -18,6 +18,9 @@ kolla_enable_glance: ...@@ -18,6 +18,9 @@ kolla_enable_glance:
# glance-registry.conf. # glance-registry.conf.
kolla_extra_glance: kolla_extra_glance:
# Path to extra Glance configuration files.
kolla_extra_glance_path:
############################################################################### ###############################################################################
# Ironic configuration. # Ironic configuration.
...@@ -252,6 +255,9 @@ kolla_extra_neutron: ...@@ -252,6 +255,9 @@ kolla_extra_neutron:
# Free form extra configuration to append to ml2_conf.ini. # Free form extra configuration to append to ml2_conf.ini.
kolla_extra_neutron_ml2: kolla_extra_neutron_ml2:
# Path to extra Neutron configuration files.
kolla_extra_neutron_path:
############################################################################### ###############################################################################
# Nova configuration. # Nova configuration.
...@@ -261,6 +267,9 @@ kolla_enable_nova: ...@@ -261,6 +267,9 @@ kolla_enable_nova:
# Free form extra configuration to append to nova.conf. # Free form extra configuration to append to nova.conf.
kolla_extra_nova: kolla_extra_nova:
# Path to extra Nova configuration files.
kolla_extra_nova_path:
############################################################################### ###############################################################################
# Sahara configuration. # Sahara configuration.
......
...@@ -6,11 +6,12 @@ ...@@ -6,11 +6,12 @@
mode: 0750 mode: 0750
with_items: with_items:
- { name: fluentd/output, enabled: "{{ kolla_extra_fluentd_output_path != None }}" } - { name: fluentd/output, enabled: "{{ kolla_extra_fluentd_output_path != None }}" }
- { name: glance, enabled: "{{ kolla_enable_glance }}" }
- { name: ironic, enabled: "{{ kolla_enable_ironic }}" } - { name: ironic, enabled: "{{ kolla_enable_ironic }}" }
- { name: neutron, enabled: "{{ kolla_enable_neutron }}" } - { name: neutron, enabled: "{{ kolla_enable_neutron }}" }
- { name: nova, enabled: "{{ kolla_enable_nova }}" }
- { name: swift, enabled: "{{ kolla_enable_swift }}" } - { name: swift, enabled: "{{ kolla_enable_swift }}" }
- { name: glance, enabled: "{{ kolla_enable_glance }}" } when: item.enabled | bool
when: "{{ item.enabled | bool }}"
- name: Ensure the Kolla OpenStack configuration files exist - name: Ensure the Kolla OpenStack configuration files exist
template: template:
...@@ -29,7 +30,7 @@ ...@@ -29,7 +30,7 @@
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" } - { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
- { src: pxelinux.default.j2, dest: ironic/pxelinux.default, enabled: "{{ kolla_enable_ironic }}" } - { src: pxelinux.default.j2, dest: ironic/pxelinux.default, enabled: "{{ kolla_enable_ironic }}" }
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" } - { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
when: "{{ item.enabled | bool }}" when: item.enabled | bool
- name: Ensure extra glance configuration files exist - name: Ensure extra glance configuration files exist
template: template:
...@@ -38,7 +39,7 @@ ...@@ -38,7 +39,7 @@
mode: 0640 mode: 0640
with_fileglob: with_fileglob:
- "{{ kolla_extra_glance_path }}/*" - "{{ kolla_extra_glance_path }}/*"
when: "{{ kolla_extra_glance_path != None }}" when: kolla_extra_glance_path != None
- name: Ensure extra fluentd output configuration files exist - name: Ensure extra fluentd output configuration files exist
template: template:
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
mode: 0640 mode: 0640
with_fileglob: with_fileglob:
- "{{ kolla_extra_fluentd_output_path }}/*.conf" - "{{ kolla_extra_fluentd_output_path }}/*.conf"
when: "{{ kolla_extra_fluentd_output_path != None }}" when: kolla_extra_fluentd_output_path != None
- name: Ensure the ironic inspector kernel and ramdisk are downloaded - name: Ensure the ironic inspector kernel and ramdisk are downloaded
get_url: get_url:
...@@ -72,3 +73,21 @@ ...@@ -72,3 +73,21 @@
when: when:
- kolla_enable_ironic | bool - kolla_enable_ironic | bool
- item.path != None - item.path != None
- name: Ensure extra neutron configuration files exist
template:
src: "{{ item }}"
dest: "{{ kolla_node_custom_config_path }}/neutron/{{ item | basename }}"
mode: 0640
with_fileglob:
- "{{ kolla_extra_neutron_path }}/*"
when: kolla_extra_neutron_path != None
- name: Ensure extra nova configuration files exist
template:
src: "{{ item }}"
dest: "{{ kolla_node_custom_config_path }}/nova/{{ item | basename }}"
mode: 0640
with_fileglob:
- "{{ kolla_extra_nova_path }}/*"
when: kolla_extra_nova_path != None
...@@ -11,8 +11,11 @@ Features ...@@ -11,8 +11,11 @@ Features
* Adds ``--interface-limit`` and ``--interface-description-limit`` arguments to * Adds ``--interface-limit`` and ``--interface-description-limit`` arguments to
the ``kayobe physical network configure`` command. These arguments allow the ``kayobe physical network configure`` command. These arguments allow
configuration to be limited to a subset of switch interfaces. configuration to be limited to a subset of switch interfaces.
* Adds a ``display`` argument to ``kayobe physical network configure`` command. * Adds a ``--display`` argument to ``kayobe physical network configure``
This will output the candidate switch configuration without applying it. command. This will output the candidate switch configuration without
applying it.
* Adds support for custom neutron and nova configuration files in
``$KAYOBE_CONFIG_PATH/kolla/config/[neutron,nova]``.
Upgrade Notes Upgrade Notes
------------- -------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment