1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# File 'manifests/node/compute.pp', line 1
class kickstack::node::compute inherits kickstack {
# Compute nodes require AMQP connectivity,
# a nova Keystone endpoint, an SQL connection,
# and a glance API server
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")
$neutron_keystone_password = getvar("${::kickstack::fact_prefix}neutron_keystone_password")
$glance_api_host = getvar("${::kickstack::fact_prefix}glance_api_host")
$ceilometer_sql_conn = getvar("${::kickstack::fact_prefix}ceilometer_sql_connection")
$ceilometer_keystone_password = getvar("${::kickstack::fact_prefix}ceilometer_keystone_password")
$ceilometer_metering_secret = getvar("${::kickstack::fact_prefix}ceilometer_metering_secret")
if $amqp_host and $amqp_password {
include kickstack::neutron::agent::l2::compute
if $nova_sql_conn and $nova_keystone_password and $glance_api_host {
include kickstack::nova::compute
}
if $neutron_keystone_password {
include kickstack::nova::neutronclient
}
if $ceilometer_sql_conn and $ceilometer_keystone_password and $ceilometer_metering_secret {
include kickstack::ceilometer::agent::compute
}
}
}
|