Add Glance services
This commit is contained in:
parent
3780c898a1
commit
7f5857cef7
19
manifests/glance/api.pp
Normal file
19
manifests/glance/api.pp
Normal file
@ -0,0 +1,19 @@
|
||||
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")
|
||||
|
||||
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,
|
||||
}
|
||||
|
||||
}
|
5
manifests/glance/config.pp
Normal file
5
manifests/glance/config.pp
Normal file
@ -0,0 +1,5 @@
|
||||
class kickstack::glance::config inherits kickstack {
|
||||
class { '::glance':
|
||||
package_ensure => 'latest',
|
||||
}
|
||||
}
|
18
manifests/glance/registry.pp
Normal file
18
manifests/glance/registry.pp
Normal file
@ -0,0 +1,18 @@
|
||||
class kickstack::glance::registry inherits kickstack {
|
||||
|
||||
include kickstack::glance::config
|
||||
|
||||
$service_password = getvar("${fact_prefix}glance_keystone_password")
|
||||
$sql_conn = getvar("${fact_prefix}glance_sql_connection")
|
||||
$keystone_internal_address = getvar("${fact_prefix}keystone_internal_address")
|
||||
|
||||
class { '::glance::registry':
|
||||
verbose => $kickstack::verbose,
|
||||
debug => $kickstack::debug,
|
||||
auth_host => "$keystone_internal_address",
|
||||
keystone_tenant => "$keystone_service_tenant",
|
||||
keystone_user => 'glance',
|
||||
keystone_password => "$service_password",
|
||||
sql_connection => "$sql_conn",
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user