Glance: Use multistore resources to set up backend
Change-Id: I1f10105b0196f6bf6bf0fe19470801bf7aff49bb
This commit is contained in:
parent
8679c8e469
commit
25af876371
|
@ -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': }
|
||||
}
|
||||
|
|
|
@ -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/',
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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'),
|
||||
|
|
Loading…
Reference in New Issue