Skip to content
This repository was archived by the owner on May 31, 2021. It is now read-only.

Commit 46a3d7c

Browse files
committed
Add Heat engine
1 parent 88f92f9 commit 46a3d7c

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

manifests/heat/api.pp

+13
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@
1515
service_password => $heat_admin_password,
1616
require => Class['::heat::api']
1717
}
18+
19+
kickstack::exportfact::export { 'heat_metadata_server':
20+
value => $hostname,
21+
tag => 'heat',
22+
require => Class['::heat::api']
23+
}
24+
1825
}
1926

2027
if 'cfn' in $apis {
@@ -38,6 +45,12 @@
3845
enabled => true,
3946
}
4047

48+
kickstack::exportfact::export { 'heat_watch_server':
49+
value => $hostname,
50+
tag => 'heat',
51+
require => Class['::heat::api_cloudwatch']
52+
}
53+
4154
# The puppet-heat module has no facility for setting up the
4255
# CloudWatch Keystone endpoint.
4356
}

manifests/heat/engine.pp

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
class kickstack::heat::engine inherits kickstack {
2+
3+
include ::kickstack::heat::config
4+
5+
$apis = split($::kickstack::heat_apis,',')
6+
7+
if 'heat' in $apis {
8+
$metadata_server = getvar("${fact_prefix}heat_metadata_server")
9+
$metadata_server_url = "http://${metadata_server}:8000"
10+
$waitcondition_server_url = "http://${metadata_server}:8000/v1/waitcondition"
11+
}
12+
13+
if 'cloudwatch' in $apis {
14+
$watch_server = getvar("${fact_prefix}heat_watch_server")
15+
$watch_server_url = "http://${watch_server}:8003"
16+
}
17+
18+
if $apis {
19+
class { '::heat::engine':
20+
heat_metadata_server_url => $metadata_server_url,
21+
heat_waitcondition_server_url => $waitcondition_server_url,
22+
heat_watch_server_url => $watch_server_url,
23+
}
24+
}
25+
26+
}

0 commit comments

Comments
 (0)