Merge "Glance: Use multistore resources to set up backend"

This commit is contained in:
Zuul 2022-01-12 16:18:05 +00:00 committed by Gerrit Code Review
commit c9dd1d6af4
3 changed files with 6 additions and 5 deletions

View File

@ -33,7 +33,9 @@ class packstack::glance ()
pipeline => 'keystone',
database_connection => "mysql+pymysql://glance:${glance_ks_pw}@${glance_mariadb_host}/glance",
workers => hiera('CONFIG_SERVICE_WORKERS'),
stores => ['file', 'http', 'swift'],
default_store => $default_store,
enabled_backends => ["${default_store}:${default_store}", "http:http"],
default_backend => $default_store,
}
glance::backend::multistore::http { 'http': }
}

View File

@ -1,7 +1,6 @@
class packstack::glance::backend::file ()
{
# TO-DO: Make this configurable
class { 'glance::backend::file':
glance::backend::multistore::file { 'file':
filesystem_store_datadir => '/var/lib/glance/images/',
}
}

View File

@ -7,7 +7,7 @@ class packstack::glance::backend::swift ()
default => '3',
}
class { 'glance::backend::swift':
glance::backend::multistore::swift { 'swift':
swift_store_user => 'services:glance',
swift_store_key => hiera('CONFIG_GLANCE_KS_PW'),
swift_store_auth_address => hiera('CONFIG_KEYSTONE_PUBLIC_URL'),