Fix requirements for controller node
This commit is contained in:
parent
c758845fc8
commit
45abd54281
@ -1,13 +1,38 @@
|
||||
class kickstack::node::controller inherits kickstack {
|
||||
|
||||
include kickstack::glance::registry
|
||||
$keystone_internal_address = getvar("${fact_prefix}keystone_internal_address")
|
||||
$glance_sql_conn = getvar("${fact_prefix}glance_sql_connection")
|
||||
$glance_keystone_password = getvar("${fact_prefix}glance_keystone_password")
|
||||
$cinder_sql_conn = getvar("${fact_prefix}cinder_sql_connection")
|
||||
$cinder_keystone_password = getvar("${fact_prefix}cinder_keystone_password")
|
||||
$nova_sql_conn = getvar("${fact_prefix}nova_sql_connection")
|
||||
$nova_keystone_password = getvar("${fact_prefix}nova_keystone_password")
|
||||
|
||||
include kickstack::cinder::scheduler
|
||||
case $::kickstack::rpc {
|
||||
'rabbitmq': {
|
||||
$amqp_host = getvar("${::kickstack::fact_prefix}rabbit_host")
|
||||
$amqp_password = getvar("${::kickstack::fact_prefix}rabbit_password")
|
||||
}
|
||||
'qpid': {
|
||||
$amqp_host = getvar("${::kickstack::fact_prefix}qpid_host")
|
||||
$amqp_password = getvar("${::kickstack::fact_prefix}qpid_password")
|
||||
}
|
||||
}
|
||||
|
||||
include kickstack::nova::cert
|
||||
include kickstack::nova::conductor
|
||||
include kickstack::nova::consoleauth
|
||||
include kickstack::nova::objectstore
|
||||
include kickstack::nova::scheduler
|
||||
if $glance_sql_conn and $glance_keystone_password {
|
||||
include kickstack::glance::registry
|
||||
}
|
||||
|
||||
if $amqp_host and $amqp_password {
|
||||
if $cinder_sql_conn and $cinder_keystone_password {
|
||||
include kickstack::cinder::scheduler
|
||||
}
|
||||
if $nova_sql_conn and $nova_keystone_password {
|
||||
include kickstack::nova::cert
|
||||
include kickstack::nova::conductor
|
||||
include kickstack::nova::consoleauth
|
||||
include kickstack::nova::objectstore
|
||||
include kickstack::nova::scheduler
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user