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
39
40
41
42
43
44
|
# File 'manifests/nova/config.pp', line 1
class kickstack::nova::config inherits kickstack {
$sql_conn = getvar("${fact_prefix}nova_sql_connection")
$glance_api_servers = getvar("${fact_prefix}glance_api_host")
case "$::kickstack::rpc" {
'rabbitmq': {
$rabbit_host = getvar("${::kickstack::fact_prefix}rabbit_host")
$rabbit_password = getvar("${fact_prefix}rabbit_password")
class { '::nova':
ensure_package => $::kickstack::package_version,
sql_connection => $sql_conn,
rpc_backend => 'nova.openstack.common.rpc.impl_kombu',
rabbit_host => $rabbit_host,
rabbit_password => $rabbit_password,
rabbit_virtual_host => $::kickstack::rabbit_virtual_host,
rabbit_userid => $::kickstack::rabbit_userid,
auth_strategy => 'keystone',
verbose => $::kickstack::verbose,
debug => $::kickstack::debug,
glance_api_servers => "${glance_api_servers}:9292",
# install_utilities => false
}
}
'qpid': {
$qpid_hostname = getvar("${::kickstack::fact_prefix}qpid_hostname")
$qpid_password = getvar("${fact_prefix}qpid_password")
class { '::nova':
ensure_package => $::kickstack::package_version,
sql_connection => $sql_conn,
rpc_backend => 'nova.openstack.common.rpc.impl_qpid',
qpid_hostname => $qpid_hostname,
qpid_password => $qpid_password,
qpid_realm => $::kickstack::qpid_realm,
qpid_user => $::kickstack::qpid_user,
auth_strategy => 'keystone',
verbose => $::kickstack::verbose,
debug => $::kickstack::debug,
glance_api_servers => "${glance_api_servers}:9292",
# install_utilities => false
}
}
}
}
|