Add Heat engine
This commit is contained in:
parent
88f92f9b9e
commit
46a3d7cb43
@ -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
26
manifests/heat/engine.pp
Normal 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,
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user