Skip to content

Commit

Permalink
Merge pull request #94 from stackhpc/fix/concat-ini-files
Browse files Browse the repository at this point in the history
Fix for concating ini files instead of config merge
  • Loading branch information
k-s-dean authored Feb 16, 2023
2 parents 3dfa3e0 + dddf6c6 commit cf731a6
Show file tree
Hide file tree
Showing 33 changed files with 37 additions and 34 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


# This file provides dnsmasq configuration for Dell Switches using Bare Metal
# Provisioning (BMP).
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/kolla-ansible/templates/globals.yml.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# {% raw %}{{ ansible_managed }}{% endraw %}


# You can use this file to override _any_ variable throughout Kolla.
# Additional options can be found in the
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/kolla-build/templates/kolla-build.conf.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# FIXME: doesn't work
# {% raw %}{{ ansible_managed }}{% endraw %}


[DEFAULT]

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% raw %}
{% extends parent_template %}
Expand Down
7 changes: 5 additions & 2 deletions ansible/roles/kolla-openstack/tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,11 @@
with_items: "{{ kolla_custom_config_info['copy'] }}"

- name: Ensure merged ini extra configuration files exist
merge_configs:
sources: "{{ item.sources }}"
copy:
content: |
{% for path in item.sources %}
{{ lookup('template', path) }}
{% endfor %}
dest: "{{ item.dest }}"
mode: 0640
with_items: "{{ kolla_custom_config_info.merge_ini }}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_aodh %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_mariabackup %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_barbican %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_blazar %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_ceilometer %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_cinder %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_cloudkitty %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_designate %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_mariadb %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_glance %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_global %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_gnocchi %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_grafana %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_heat %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


[DEFAULT]
enabled_hardware_types: {{ kolla_ironic_enabled_hardware_types | join(',') }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_kafka %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}

{% if kolla_extra_keystone %}
#######################
# Extra configuration
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_magnum %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_manila %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_masakari %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_murano %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_neutron %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


[ml2]
{% if kolla_neutron_ml2_mechanism_drivers %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_nova %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_octavia %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_sahara %}
#######################
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% if kolla_extra_zookeeper %}
#######################
Expand Down
2 changes: 1 addition & 1 deletion ansible/roles/public-openrc/templates/public-openrc.sh.j2
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# {% raw %}{{ ansible_managed }}{% endraw %}


{% for line in (admin_openrc.content | b64decode).splitlines() %}
{% if "export OS_AUTH_URL" in line %}
Expand Down

0 comments on commit cf731a6

Please sign in to comment.