From cbb542e07acfdbdb7459963d431d842ecaf7abdf Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 30 Apr 2021 17:39:27 +0900 Subject: [PATCH] Replace deprecated glance::api::database_connection Change-Id: Iaff680095dfa93f5f6f2995ec588d352413aa8fe --- manifests/glance.pp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/manifests/glance.pp b/manifests/glance.pp index 7ca3ba307..65a00fbd5 100644 --- a/manifests/glance.pp +++ b/manifests/glance.pp @@ -80,14 +80,16 @@ class openstack_integration::glance ( class { 'glance::api::logging': debug => true, } - class { 'glance::api': + class { 'glance::api::db': database_connection => 'mysql+pymysql://glance:glance@127.0.0.1/glance?charset=utf8', - workers => 2, - enabled_backends => $enabled_backends, - default_backend => $default_backend, - bind_host => $::openstack_integration::config::host, - cert_file => $crt_file, - key_file => $key_file, + } + class { 'glance::api': + workers => 2, + enabled_backends => $enabled_backends, + default_backend => $default_backend, + bind_host => $::openstack_integration::config::host, + cert_file => $crt_file, + key_file => $key_file, } class { 'glance::notify::rabbitmq': default_transport_url => os_transport_url({