56 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
			
		
		
	
	
			56 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			Puppet
		
	
	
	
	
	
| #
 | |
| # Copyright (C) 2014 eNovance SAS <licensing@enovance.com>
 | |
| #
 | |
| # Licensed under the Apache License, Version 2.0 (the "License"); you may
 | |
| # not use this file except in compliance with the License. You may obtain
 | |
| # a copy of the License at
 | |
| #
 | |
| #      http://www.apache.org/licenses/LICENSE-2.0
 | |
| #
 | |
| # Unless required by applicable law or agreed to in writing, software
 | |
| # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 | |
| # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 | |
| # License for the specific language governing permissions and limitations
 | |
| # under the License.
 | |
| #
 | |
| # Orchestration common node
 | |
| #
 | |
| 
 | |
| class cloud::orchestration(
 | |
|   $ks_keystone_internal_host  = $os_params::ks_keystone_internal_host,
 | |
|   $ks_keystone_internal_port  = $os_params::ks_keystone_internal_port,
 | |
|   $ks_keystone_internal_proto = $os_params::ks_keystone_internal_proto,
 | |
|   $ks_keystone_admin_host     = $os_params::ks_keystone_admin_host,
 | |
|   $ks_keystone_admin_port     = $os_params::ks_keystone_admin_port,
 | |
|   $ks_keystone_admin_proto    = $os_params::ks_keystone_admin_proto,
 | |
|   $ks_heat_public_host        = $os_params::ks_heat_public_host,
 | |
|   $ks_heat_public_proto       = $os_params::ks_heat_public_proto,
 | |
|   $ks_heat_password           = $os_params::ks_heat_password,
 | |
|   $heat_db_host               = $os_params::heat_db_host,
 | |
|   $heat_db_user               = $os_params::heat_db_user,
 | |
|   $heat_db_password           = $os_params::heat_db_password,
 | |
|   $rabbit_hosts               = $os_params::rabbit_hosts,
 | |
|   $rabbit_password            = $os_params::rabbit_password,
 | |
|   $verbose                    = $os_params::verbose,
 | |
|   $debug                      = $os_params::debug,
 | |
| ) {
 | |
| 
 | |
|   $encoded_user     = uriescape($heat_db_user)
 | |
|   $encoded_password = uriescape($heat_db_password)
 | |
| 
 | |
|   class { 'heat':
 | |
|     keystone_host     => $ks_keystone_admin_host,
 | |
|     keystone_port     => $ks_keystone_admin_port,
 | |
|     keystone_protocol => $ks_keystone_admin_proto,
 | |
|     keystone_password => $ks_heat_password,
 | |
|     auth_uri          => "${ks_keystone_internal_proto}://${ks_keystone_internal_host}:${ks_keystone_internal_port}/v2.0",
 | |
|     sql_connection    => "mysql://${encoded_user}:${encoded_password}@${heat_db_host}/heat",
 | |
|     rabbit_hosts      => $rabbit_hosts,
 | |
|     rabbit_password   => $rabbit_password,
 | |
|     rabbit_userid     => 'heat',
 | |
|     verbose           => $verbose,
 | |
|     debug             => $debug,
 | |
|   }
 | |
| 
 | |
| }
 | 
