22 lines
758 B
Puppet

class kickstack::glance::api inherits kickstack {
include kickstack::glance::config
# Grab the Keystone admin token from a kickstack fact and configure
# Keystone accordingly. If no fact has been set, generate a password.
$service_password = getvar("${fact_prefix}glance_keystone_password")
$sql_conn = getvar("${fact_prefix}glance_sql_connection")
$reg_host = getvar("${fact_prefix}glance_registry_host")
class { '::glance::api':
verbose => $kickstack::verbose,
debug => $kickstack::debug,
keystone_tenant => $kickstack::keystone_service_tenant,
keystone_user => 'glance',
keystone_password => $service_password,
sql_connection => $sql_conn,
registry_host => $reg_host,
}
}