339c8fc04f
glance-registry was deprecated some releases ago and it has been fially removed in Victoria [1]. This patch stop deploying glance-registry service. [1] https://review.opendev.org/#/c/738671/ Change-Id: If56beeb503033149115138150b0a865a2d519321
40 lines
1.3 KiB
Puppet
40 lines
1.3 KiB
Puppet
class packstack::glance ()
|
|
{
|
|
create_resources(packstack::firewall, hiera('FIREWALL_GLANCE_RULES', {}))
|
|
|
|
$glance_ks_pw = hiera('CONFIG_GLANCE_DB_PW')
|
|
$glance_mariadb_host = hiera('CONFIG_MARIADB_HOST_URL')
|
|
$glance_cfg_ctrl_host = hiera('CONFIG_KEYSTONE_HOST_URL')
|
|
|
|
# glance option bind_host requires address without brackets
|
|
$bind_host = hiera('CONFIG_IP_VERSION') ? {
|
|
'ipv6' => '::0',
|
|
default => '0.0.0.0',
|
|
# TO-DO(mmagr): Add IPv6 support when hostnames are used
|
|
}
|
|
|
|
$default_store = hiera('CONFIG_GLANCE_BACKEND') ? {
|
|
'swift' => 'swift',
|
|
default => 'file',
|
|
}
|
|
|
|
class { '::glance::api::authtoken':
|
|
www_authenticate_uri => hiera('CONFIG_KEYSTONE_PUBLIC_URL'),
|
|
auth_url => hiera('CONFIG_KEYSTONE_ADMIN_URL'),
|
|
password => hiera('CONFIG_GLANCE_KS_PW'),
|
|
}
|
|
|
|
class { '::glance::api::logging':
|
|
debug => hiera('CONFIG_DEBUG_MODE'),
|
|
}
|
|
|
|
class { '::glance::api':
|
|
bind_host => $bind_host,
|
|
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,
|
|
}
|
|
}
|