Merge "Adds support for custom Placement configuration."
This commit is contained in:
commit
616ed9d44b
@ -134,6 +134,7 @@
|
|||||||
- { name: neutron_ml2, file: neutron/ml2_conf.ini }
|
- { name: neutron_ml2, file: neutron/ml2_conf.ini }
|
||||||
- { name: nova, file: nova.conf }
|
- { name: nova, file: nova.conf }
|
||||||
- { name: octavia, file: octavia.conf }
|
- { name: octavia, file: octavia.conf }
|
||||||
|
- { name: placement, file: placement.conf }
|
||||||
- { name: sahara, file: sahara.conf }
|
- { name: sahara, file: sahara.conf }
|
||||||
- { name: zookeeper, file: zookeeper.cfg }
|
- { name: zookeeper, file: zookeeper.cfg }
|
||||||
|
|
||||||
@ -244,6 +245,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_octavia: "{{ kolla_extra_config.octavia | default }}"
|
kolla_extra_octavia: "{{ kolla_extra_config.octavia | default }}"
|
||||||
|
kolla_extra_placement: "{{ kolla_extra_config.placement | default }}"
|
||||||
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
|
kolla_extra_sahara: "{{ kolla_extra_config.sahara | default }}"
|
||||||
kolla_extra_zookeeper: "{{ kolla_extra_config.zookeeper | default }}"
|
kolla_extra_zookeeper: "{{ kolla_extra_config.zookeeper | default }}"
|
||||||
kolla_extra_config_path: "{{ kayobe_env_config_path }}/kolla/config"
|
kolla_extra_config_path: "{{ kayobe_env_config_path }}/kolla/config"
|
||||||
|
@ -456,6 +456,15 @@ kolla_extra_nova:
|
|||||||
# Whether to enable Octavia.
|
# Whether to enable Octavia.
|
||||||
kolla_enable_octavia:
|
kolla_enable_octavia:
|
||||||
|
|
||||||
|
###############################################################################
|
||||||
|
# Placement configuration.
|
||||||
|
|
||||||
|
# Whether to enable placement.
|
||||||
|
kolla_enable_placement:
|
||||||
|
|
||||||
|
# Free form extra configuration to append to placement.conf.
|
||||||
|
kolla_extra_placement:
|
||||||
|
|
||||||
###############################################################################
|
###############################################################################
|
||||||
# Prometheus configuration.
|
# Prometheus configuration.
|
||||||
|
|
||||||
|
@ -123,6 +123,10 @@ provisioner:
|
|||||||
kolla_extra_octavia: |
|
kolla_extra_octavia: |
|
||||||
[extra-octavia.conf]
|
[extra-octavia.conf]
|
||||||
foo=bar
|
foo=bar
|
||||||
|
kolla_enable_placement: true
|
||||||
|
kolla_extra_placement: |
|
||||||
|
[extra-placement.conf]
|
||||||
|
foo=bar
|
||||||
kolla_enable_prometheus: true
|
kolla_enable_prometheus: true
|
||||||
kolla_enable_sahara: true
|
kolla_enable_sahara: true
|
||||||
kolla_extra_sahara: |
|
kolla_extra_sahara: |
|
||||||
|
@ -51,6 +51,7 @@ testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
|
|||||||
'neutron',
|
'neutron',
|
||||||
'nova',
|
'nova',
|
||||||
'octavia',
|
'octavia',
|
||||||
|
'placement',
|
||||||
'prometheus',
|
'prometheus',
|
||||||
'sahara',
|
'sahara',
|
||||||
'storm',
|
'storm',
|
||||||
@ -84,6 +85,7 @@ def test_service_config_directory(host, path):
|
|||||||
'neutron.conf',
|
'neutron.conf',
|
||||||
'nova.conf',
|
'nova.conf',
|
||||||
'octavia.conf',
|
'octavia.conf',
|
||||||
|
'placement.conf',
|
||||||
'sahara.conf',
|
'sahara.conf',
|
||||||
'backup.my.cnf',
|
'backup.my.cnf',
|
||||||
'zookeeper.cfg'])
|
'zookeeper.cfg'])
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
|
- { src: neutron.conf.j2, dest: neutron.conf, enabled: "{{ kolla_enable_neutron }}" }
|
||||||
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
|
- { src: nova.conf.j2, dest: nova.conf, enabled: "{{ kolla_enable_nova }}" }
|
||||||
- { src: octavia.conf.j2, dest: octavia.conf, enabled: "{{ kolla_enable_octavia }}" }
|
- { src: octavia.conf.j2, dest: octavia.conf, enabled: "{{ kolla_enable_octavia }}" }
|
||||||
|
- { src: placement.conf.j2, dest: placement.conf, enabled: "{{ kolla_enable_placement }}" }
|
||||||
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
|
- { src: sahara.conf.j2, dest: sahara.conf, enabled: "{{ kolla_enable_sahara }}" }
|
||||||
- { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" }
|
- { src: zookeeper.cfg.j2, dest: zookeeper.cfg, enabled: "{{ kolla_enable_zookeeper }}" }
|
||||||
when: item.enabled | bool
|
when: item.enabled | bool
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
# {{ ansible_managed }}
|
||||||
|
|
||||||
|
{% if kolla_extra_placement %}
|
||||||
|
#######################
|
||||||
|
# Extra configuration
|
||||||
|
#######################
|
||||||
|
|
||||||
|
{{ kolla_extra_placement }}
|
||||||
|
{% endif %}
|
@ -180,6 +180,11 @@ kolla_openstack_custom_config:
|
|||||||
dest: "{{ kolla_node_custom_config_path }}/octavia"
|
dest: "{{ kolla_node_custom_config_path }}/octavia"
|
||||||
patterns: "*"
|
patterns: "*"
|
||||||
enabled: "{{ kolla_enable_octavia }}"
|
enabled: "{{ kolla_enable_octavia }}"
|
||||||
|
# Placement
|
||||||
|
- src: "{{ kolla_extra_config_path }}/placement"
|
||||||
|
dest: "{{ kolla_node_custom_config_path }}/placement"
|
||||||
|
patterns: "*"
|
||||||
|
enabled: "{{ kolla_enable_placement }}"
|
||||||
# Prometheus config
|
# Prometheus config
|
||||||
- src: "{{ kolla_extra_config_path }}/prometheus"
|
- src: "{{ kolla_extra_config_path }}/prometheus"
|
||||||
dest: "{{ kolla_node_custom_config_path }}/prometheus"
|
dest: "{{ kolla_node_custom_config_path }}/prometheus"
|
||||||
|
@ -720,6 +720,8 @@ which files are supported.
|
|||||||
``nova/*`` Extended nova configuration.
|
``nova/*`` Extended nova configuration.
|
||||||
``octavia.conf`` Octavia configuration.
|
``octavia.conf`` Octavia configuration.
|
||||||
``octavia/*`` Extended Octavia configuration.
|
``octavia/*`` Extended Octavia configuration.
|
||||||
|
``placement.conf`` Placement configuration.
|
||||||
|
``placement/*`` Extended Placement configuration.
|
||||||
``prometheus/*`` Prometheus configuration.
|
``prometheus/*`` Prometheus configuration.
|
||||||
``sahara.conf`` Sahara configuration.
|
``sahara.conf`` Sahara configuration.
|
||||||
``sahara/*`` Extended sahara configuration.
|
``sahara/*`` Extended sahara configuration.
|
||||||
|
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Adds support for custom Placement configuration.
|
Loading…
Reference in New Issue
Block a user