Merge pull request #33 from markgoddard/neutron-nova-custom-config
Neutron & nova custom config
This commit is contained in:
commit
dd5a6960b9
@ -235,6 +235,7 @@ kolla_enable_glance: "yes"
|
||||
kolla_enable_haproxy: "yes"
|
||||
kolla_enable_ironic: "yes"
|
||||
kolla_enable_neutron: "yes"
|
||||
kolla_enable_nova: "yes"
|
||||
kolla_enable_magnum: "no"
|
||||
kolla_enable_murano: "no"
|
||||
kolla_enable_sahara: "no"
|
||||
|
@ -185,5 +185,7 @@
|
||||
kolla_extra_neutron_ml2: "{{ kolla_extra_config.neutron_ml2 | default }}"
|
||||
kolla_extra_nova: "{{ kolla_extra_config.nova | 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_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:
|
||||
# glance-registry.conf.
|
||||
kolla_extra_glance:
|
||||
|
||||
# Path to extra Glance configuration files.
|
||||
kolla_extra_glance_path:
|
||||
|
||||
###############################################################################
|
||||
# Ironic configuration.
|
||||
|
||||
@ -252,6 +255,9 @@ kolla_extra_neutron:
|
||||
# Free form extra configuration to append to ml2_conf.ini.
|
||||
kolla_extra_neutron_ml2:
|
||||
|
||||
# Path to extra Neutron configuration files.
|
||||
kolla_extra_neutron_path:
|
||||
|
||||
###############################################################################
|
||||
# Nova configuration.
|
||||
|
||||
@ -261,6 +267,9 @@ kolla_enable_nova:
|
||||
# Free form extra configuration to append to nova.conf.
|
||||
kolla_extra_nova:
|
||||
|
||||
# Path to extra Nova configuration files.
|
||||
kolla_extra_nova_path:
|
||||
|
||||
###############################################################################
|
||||
# Sahara configuration.
|
||||
|
||||
|
@ -6,11 +6,12 @@
|
||||
mode: 0750
|
||||
with_items:
|
||||
- { name: fluentd/output, enabled: "{{ kolla_extra_fluentd_output_path != None }}" }
|
||||
- { name: glance, enabled: "{{ kolla_enable_glance }}" }
|
||||
- { name: ironic, enabled: "{{ kolla_enable_ironic }}" }
|
||||
- { name: neutron, enabled: "{{ kolla_enable_neutron }}" }
|
||||
- { name: nova, enabled: "{{ kolla_enable_nova }}" }
|
||||
- { 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
|
||||
template:
|
||||
@ -29,7 +30,7 @@
|
||||
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
|
||||
- { src: pxelinux.default.j2, dest: ironic/pxelinux.default, enabled: "{{ kolla_enable_ironic }}" }
|
||||
- { 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
|
||||
template:
|
||||
@ -38,7 +39,7 @@
|
||||
mode: 0640
|
||||
with_fileglob:
|
||||
- "{{ kolla_extra_glance_path }}/*"
|
||||
when: "{{ kolla_extra_glance_path != None }}"
|
||||
when: kolla_extra_glance_path != None
|
||||
|
||||
- name: Ensure extra fluentd output configuration files exist
|
||||
template:
|
||||
@ -47,7 +48,7 @@
|
||||
mode: 0640
|
||||
with_fileglob:
|
||||
- "{{ 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
|
||||
get_url:
|
||||
@ -72,3 +73,21 @@
|
||||
when:
|
||||
- kolla_enable_ironic | bool
|
||||
- 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
|
||||
|
@ -1,22 +1,5 @@
|
||||
# {{ ansible_managed }}
|
||||
|
||||
[DEFAULT]
|
||||
{% if kolla_enable_ironic | bool %}
|
||||
# Taken from the ironic configuration guide.
|
||||
|
||||
# Flag to decide whether to use baremetal_scheduler_default_filters or not.
|
||||
# (boolean value)
|
||||
scheduler_use_baremetal_filters=True
|
||||
|
||||
# Determines if the Scheduler tracks changes to instances to help with
|
||||
# its filtering decisions (boolean value)
|
||||
scheduler_tracks_instance_changes=False
|
||||
|
||||
# For ironic, this should be set to a number >= the number of ironic nodes
|
||||
# to more evenly distribute instances across the nodes.
|
||||
scheduler_host_subset_size=9999999
|
||||
{% endif %}
|
||||
|
||||
{% if kolla_extra_nova %}
|
||||
#######################
|
||||
# Extra configuration
|
||||
|
@ -11,8 +11,11 @@ Features
|
||||
* Adds ``--interface-limit`` and ``--interface-description-limit`` arguments to
|
||||
the ``kayobe physical network configure`` command. These arguments allow
|
||||
configuration to be limited to a subset of switch interfaces.
|
||||
* Adds a ``display`` argument to ``kayobe physical network configure`` command.
|
||||
This will output the candidate switch configuration without applying it.
|
||||
* Adds a ``--display`` argument to ``kayobe physical network configure``
|
||||
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
|
||||
-------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user