Skip to content

Commit 5cc2bf3

Browse files
authored
Merge pull request #750 from stackhpc/upstream/master-2025-07-17
Synchronise master with upstream
2 parents 5560b50 + 9810f32 commit 5cc2bf3

File tree

206 files changed

+517
-153
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+517
-153
lines changed

ansible/roles/aodh/defaults/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,3 +249,11 @@ aodh_ks_users:
249249
user: "{{ aodh_keystone_user }}"
250250
password: "{{ aodh_keystone_password }}"
251251
role: "admin"
252+
253+
# Database
254+
aodh_database_enable_tls_internal: "{{ database_enable_tls_internal | bool }}"
255+
256+
###################
257+
# Copy certificates
258+
###################
259+
aodh_copy_certs: "{{ kolla_copy_ca_into_containers | bool or aodh_database_enable_tls_internal | bool }}"

ansible/roles/aodh/tasks/bootstrap.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
container_engine: "{{ kolla_container_engine }}"
66
module_name: mysql_db
77
module_args:
8+
ca_cert: "{{ openstack_cacert if database_enable_tls_internal | bool else omit }}"
89
login_host: "{{ database_address }}"
910
login_port: "{{ database_port }}"
1011
login_user: "{{ aodh_database_shard_root_user }}"
@@ -21,6 +22,7 @@
2122
container_engine: "{{ kolla_container_engine }}"
2223
module_name: mysql_user
2324
module_args:
25+
ca_cert: "{{ openstack_cacert if database_enable_tls_internal | bool else omit }}"
2426
login_host: "{{ database_address }}"
2527
login_port: "{{ database_port }}"
2628
login_user: "{{ aodh_database_shard_root_user }}"

ansible/roles/aodh/tasks/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040

4141
- include_tasks: copy-certs.yml
4242
when:
43-
- kolla_copy_ca_into_containers | bool
43+
- aodh_copy_certs | bool
4444

4545
- name: Copying over config.json files for services
4646
template:

ansible/roles/aodh/templates/aodh.conf.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ port = {{ aodh_api_listen_port }}
1111
host = {{ api_interface_address }}
1212

1313
[database]
14-
connection = mysql+pymysql://{{ aodh_database_user }}:{{ aodh_database_password }}@{{ aodh_database_address }}/{{ aodh_database_name }}
14+
connection = mysql+pymysql://{{ aodh_database_user }}:{{ aodh_database_password }}@{{ aodh_database_address }}/{{ aodh_database_name }}{{ '?ssl_ca=' ~ openstack_cacert if aodh_database_enable_tls_internal | bool }}
1515
connection_recycle_time = {{ database_connection_recycle_time }}
1616
max_pool_size = {{ database_max_pool_size }}
1717

ansible/roles/barbican/defaults/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,10 @@ barbican_enabled_notification_topics: "{{ barbican_notification_topics | selecta
224224
####################
225225
barbican_enable_tls_backend: "{{ kolla_enable_tls_backend }}"
226226

227-
barbican_copy_certs: "{{ kolla_copy_ca_into_containers | bool or barbican_enable_tls_backend | bool }}"
227+
# Database
228+
barbican_database_enable_tls_internal: "{{ database_enable_tls_internal | bool }}"
229+
230+
###################
231+
# Copy certificates
232+
###################
233+
barbican_copy_certs: "{{ kolla_copy_ca_into_containers | bool or barbican_enable_tls_backend | bool or barbican_database_enable_tls_internal | bool }}"

ansible/roles/barbican/tasks/bootstrap.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
container_engine: "{{ kolla_container_engine }}"
66
module_name: mysql_db
77
module_args:
8+
ca_cert: "{{ openstack_cacert if database_enable_tls_internal | bool else omit }}"
89
login_host: "{{ database_address }}"
910
login_port: "{{ database_port }}"
1011
login_user: "{{ barbican_database_shard_root_user }}"
@@ -21,6 +22,7 @@
2122
container_engine: "{{ kolla_container_engine }}"
2223
module_name: mysql_user
2324
module_args:
25+
ca_cert: "{{ openstack_cacert if database_enable_tls_internal | bool else omit }}"
2426
login_host: "{{ database_address }}"
2527
login_port: "{{ database_port }}"
2628
login_user: "{{ barbican_database_shard_root_user }}"

ansible/roles/barbican/tasks/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
- include_tasks: copy-certs.yml
4646
when:
47-
- barbican_copy_certs
47+
- barbican_copy_certs | bool
4848

4949
- name: Copying over config.json files for services
5050
template:

ansible/roles/barbican/templates/barbican-api.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"dest": "/etc/barbican/{{ barbican_policy_file }}",
3838
"owner": "barbican",
3939
"perm": "0600"
40-
}{% endif %}{% if barbican_copy_certs | bool %},
40+
}{% endif %}{% if kolla_copy_ca_into_containers | bool %},
4141
{
4242
"source": "{{ container_config_directory }}/ca-certificates",
4343
"dest": "/var/lib/kolla/share/ca-certificates",

ansible/roles/barbican/templates/barbican-keystone-listener.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"dest": "/etc/barbican/{{ barbican_policy_file }}",
1313
"owner": "barbican",
1414
"perm": "0600"
15-
}{% endif %}{% if barbican_copy_certs | bool %},
15+
}{% endif %}{% if kolla_copy_ca_into_containers | bool %},
1616
{
1717
"source": "{{ container_config_directory }}/ca-certificates",
1818
"dest": "/var/lib/kolla/share/ca-certificates",

ansible/roles/barbican/templates/barbican-worker.json.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"owner": "barbican",
1414
"perm": "0600"
1515
}{% endif %}
16-
{% if barbican_copy_certs | bool %},
16+
{% if kolla_copy_ca_into_containers | bool %},
1717
{
1818
"source": "{{ container_config_directory }}/ca-certificates",
1919
"dest": "/var/lib/kolla/share/ca-certificates",

0 commit comments

Comments
 (0)