From 323f10a7cc9ed7ff129b1e764e854c8d3a885966 Mon Sep 17 00:00:00 2001 From: Michal Arbet Date: Wed, 18 Sep 2024 16:06:05 +0200 Subject: [PATCH] [Trivial] Fix ironic when proxysql is enabled This patch adds missing ironic_database_shard_id which is used by proxysql-config role to generate proxysql configuration. Change-Id: I11ddfe73c79cc59a97d119091c8b9a3f5eda001d --- ansible/roles/ironic/defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/ansible/roles/ironic/defaults/main.yml b/ansible/roles/ironic/defaults/main.yml index 442fbdb5bf..e12b6956da 100644 --- a/ansible/roles/ironic/defaults/main.yml +++ b/ansible/roles/ironic/defaults/main.yml @@ -116,6 +116,7 @@ ironic_inspector_database_address: "{{ database_address | put_address_in_context # Database sharding #################### ironic_database_shard_root_user: "{% if enable_proxysql | bool %}root_shard_{{ ironic_database_shard_id }}{% else %}{{ database_user }}{% endif %}" +ironic_database_shard_id: "{{ mariadb_default_database_shard_id | int }}" ironic_database_shard: users: - user: "{{ ironic_database_user }}"