forked from redhat-openstack/astapor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
heat_controller.pp
57 lines (49 loc) · 1.56 KB
/
heat_controller.pp
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
45
46
47
48
49
50
51
52
53
54
55
56
57
class quickstack::heat_controller(
$heat_cfn,
$heat_cloudwatch,
$heat_user_password,
$heat_db_password,
$controller_priv_host,
$controller_pub_host,
$mysql_host,
$qpid_host,
$verbose,
) {
class {"heat::keystone::auth":
password => $heat_user_password,
heat_public_address => $controller_pub_host,
heat_admin_address => $controller_priv_host,
heat_internal_address => $controller_priv_host,
cfn_public_address => $controller_pub_host,
cfn_admin_address => $controller_priv_host,
cfn_internal_address => $controller_priv_host,
}
class { 'heat':
keystone_host => $controller_priv_host,
keystone_password => $heat_user_password,
auth_uri => "http:https://${controller_priv_host}:35357/v2.0",
rpc_backend => 'heat.openstack.common.rpc.impl_qpid',
qpid_hostname => $qpid_host,
verbose => $verbose,
}
class { 'heat::api_cfn':
enabled => str2bool($heat_cfn),
}
class { 'heat::api_cloudwatch':
enabled => str2bool($heat_cloudwatch),
}
class { 'heat::engine':
heat_metadata_server_url => "http:https://${controller_priv_host}:8000",
heat_waitcondition_server_url => "http:https://${controller_priv_host}:8000/v1/waitcondition",
heat_watch_server_url => "http:https://${controller_priv_host}:8003",
}
class { 'heat::db::mysql':
password => $heat_db_password,
allowed_hosts => "%%",
}
class { 'heat::db':
sql_connection => "mysql:https://heat:${heat_db_password}@${mysql_host}/heat",
}
class { 'heat::api':
}
}