Add Heat engine

This commit is contained in:
Florian Haas 2013-10-17 18:00:18 +02:00
parent 88f92f9b9e
commit 46a3d7cb43
2 changed files with 39 additions and 0 deletions

View File

@ -15,6 +15,13 @@ class kickstack::heat::api inherits kickstack {
service_password => $heat_admin_password,
require => Class['::heat::api']
}
kickstack::exportfact::export { 'heat_metadata_server':
value => $hostname,
tag => 'heat',
require => Class['::heat::api']
}
}
if 'cfn' in $apis {
@ -38,6 +45,12 @@ class kickstack::heat::api inherits kickstack {
enabled => true,
}
kickstack::exportfact::export { 'heat_watch_server':
value => $hostname,
tag => 'heat',
require => Class['::heat::api_cloudwatch']
}
# The puppet-heat module has no facility for setting up the
# CloudWatch Keystone endpoint.
}

26
manifests/heat/engine.pp Normal file
View File

@ -0,0 +1,26 @@
class kickstack::heat::engine inherits kickstack {
include ::kickstack::heat::config
$apis = split($::kickstack::heat_apis,',')
if 'heat' in $apis {
$metadata_server = getvar("${fact_prefix}heat_metadata_server")
$metadata_server_url = "http://${metadata_server}:8000"
$waitcondition_server_url = "http://${metadata_server}:8000/v1/waitcondition"
}
if 'cloudwatch' in $apis {
$watch_server = getvar("${fact_prefix}heat_watch_server")
$watch_server_url = "http://${watch_server}:8003"
}
if $apis {
class { '::heat::engine':
heat_metadata_server_url => $metadata_server_url,
heat_waitcondition_server_url => $waitcondition_server_url,
heat_watch_server_url => $watch_server_url,
}
}
}