Use gnocchi::db instead of database_connection in gnocchi class

database_connection in gnocchi class has been finally removed in
puppet-gnocchi [1]. This patch replaces it by using gnocchi::db.

[1] https://review.opendev.org/#/c/748928/

Change-Id: I5cd3ba01d373ff06ba58acbf15ff565b19a69f05
This commit is contained in:
Alfredo Moralejo 2020-09-02 09:54:41 +02:00
parent 1fd13900a2
commit 4a8a373467
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,6 @@ class packstack::gnocchi ()
}
class { '::gnocchi':
database_connection => "mysql+pymysql://gnocchi:${gnocchi_cfg_db_pw}@${gnocchi_cfg_mariadb_host}/gnocchi?charset=utf8",
}
class { '::gnocchi::keystone::authtoken':
@ -21,6 +20,10 @@ class packstack::gnocchi ()
password => hiera('CONFIG_GNOCCHI_KS_PW')
}
class { '::gnocchi::db':
database_connection => "mysql+pymysql://gnocchi:${gnocchi_cfg_db_pw}@${gnocchi_cfg_mariadb_host}/gnocchi?charset=utf8",
}
class { '::gnocchi::api':
service_name => 'httpd',
sync_db => true,