kickstack/manifests/node/compute.pp
Florian Haas 1205ac5713 Fix fact dependencies for compute nodes
A compute node needs to be able to talk to an AMQP host,
and Keystone. Skip configuration if required facts are unset.
2013-07-14 09:15:44 +00:00

27 lines
859 B
Puppet

class kickstack::node::compute inherits kickstack {
# Compute nodes require AMQP connectivity,
# a nova Keystone endpoint, and an SQL connection
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")
}
}
$nova_sql_conn = getvar("${::kickstack::fact_prefix}nova_sql_connection")
$nova_keystone_password = getvar("${::kickstack::fact_prefix}nova_keystone_password")
if $amqp_host and $amqp_password {
include kickstack::quantum::agent::l2
if $nova_sql_conn and $nova_keystone_password {
include kickstack::nova::compute
}
}
}