# # Copyright (C) 2013 eNovance SAS # # 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. # # == Class: privatecloud::dashboard # # Installs the OpenStack Dashboard (Horizon) # # === Parameters: # # [*ks_keystone_internal_host*] # (optional) Internal address for endpoint. # Default value in params # # [*secret_key*] # (optional) Secret key. This is used by Django to provide cryptographic # signing, and should be set to a unique, unpredictable value. # Default value in params # # [*horizon_port*] # (optional) Port used to connect to OpenStack Dashboard # Default value in params # # [*local_ip*] # (optional) Local interface used to listen on the Horizon Dashboard # Defaults to $ipaddress_eth0 # # [*listen_ssl*] # (optional) Enable SSL on OpenStack Dashboard vhost # It requires SSL files (keys and certificates) # Defaults false # class privatecloud::dashboard( $ks_keystone_internal_host = $os_params::ks_keystone_internal_host, $secret_key = $os_params::secret_key, $horizon_port = $os_params::horizon_port, $local_ip = $ipaddress_eth0, $listen_ssl = false, ) { class {'horizon': secret_key => $secret_key, keystone_host => $ks_keystone_internal_host, can_set_mount_point => 'False', # fqdn can can be ambiguous since we use reverse DNS here, # e.g: 127.0.0.1 instead of a public IP address. # We force $local_ip to avoid this situation fqdn => $local_ip } @@haproxy::balancermember{"${::fqdn}-horizon": listening_service => 'horizon_cluster', server_names => $::hostname, ipaddresses => $local_ip, ports => $horizon_port, options => 'check inter 2000 rise 2 fall 5' } }