diff --git a/ansible/roles/barbican/templates/barbican.conf.j2 b/ansible/roles/barbican/templates/barbican.conf.j2 index fa7c3e0d5c..a3c727c063 100644 --- a/ansible/roles/barbican/templates/barbican.conf.j2 +++ b/ansible/roles/barbican/templates/barbican.conf.j2 @@ -12,10 +12,15 @@ host_href = {{ barbican_public_endpoint }} backlog = 4096 db_auto_create = False -sql_connection = mysql+pymysql://{{ barbican_database_user }}:{{ barbican_database_password }}@{{ barbican_database_address }}/{{ barbican_database_name }} transport_url = {{ rpc_transport_url }} +[database] +connection = mysql+pymysql://{{ barbican_database_user }}:{{ barbican_database_password }}@{{ barbican_database_address }}/{{ barbican_database_name }} +connection_recycle_time = {{ database_connection_recycle_time }} +max_pool_size = {{ database_max_pool_size }} +max_retries = -1 + # ================= Secret Store Plugin =================== [secretstore] namespace = barbican.secretstore.plugin diff --git a/releasenotes/notes/bug-2072554-d113b89975985520.yaml b/releasenotes/notes/bug-2072554-d113b89975985520.yaml new file mode 100644 index 0000000000..6599ea61a2 --- /dev/null +++ b/releasenotes/notes/bug-2072554-d113b89975985520.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Adds database configuration necessary for barbican. + `LP#2072554 `__