30 lines
1.1 KiB
Puppet
30 lines
1.1 KiB
Puppet
class osnailyfacter::vmware::vcenter {
|
|
|
|
notice('MODULAR: vmware/vcenter.pp')
|
|
|
|
$use_vcenter = hiera('use_vcenter', false)
|
|
$vcenter_hash = hiera_hash('vcenter')
|
|
$public_vip = hiera('public_vip')
|
|
$ceilometer_hash = hiera_hash('ceilometer', {})
|
|
$nova_hash = hiera_hash('nova', {})
|
|
$public_ssl_hash = hiera_hash('public_ssl')
|
|
$ssl_hash = hiera_hash('use_ssl', {})
|
|
$vncproxy_protocol = get_ssl_property($ssl_hash, $public_ssl_hash, 'nova', 'public', 'protocol', [$nova_hash['vncproxy_protocol'], 'http'])
|
|
$vncproxy_host = get_ssl_property($ssl_hash, $public_ssl_hash, 'nova', 'public', 'hostname', [$public_vip])
|
|
$debug = pick($vcenter_hash['debug'], hiera('debug', false))
|
|
|
|
if $use_vcenter {
|
|
class { '::vmware':
|
|
vcenter_settings => $vcenter_hash['computes'],
|
|
vlan_interface => $vcenter_hash['esxi_vlan_interface'],
|
|
use_quantum => true,
|
|
vncproxy_protocol => $vncproxy_protocol,
|
|
vncproxy_host => $vncproxy_host,
|
|
nova_hash => $nova_hash,
|
|
ceilometer => $ceilometer_hash['enabled'],
|
|
debug => $debug,
|
|
}
|
|
}
|
|
|
|
}
|