2cd8c10151
1) Add test to check whether catalog contains injection of files which actually should be installed as packages 2) Add more fixtures with astute yamls 3) Shared examples structure refactoring 4) Remove File.exists? checks from install_ssh_keys 5) Add rspec and puppet debug options 6) Misc fixes to make rspec actually work Change-Id: I8217594cd9f2c0f19c840c0abed37d94ff80eb75 blueprint: package-fuel-components
41 lines
1.5 KiB
Puppet
41 lines
1.5 KiB
Puppet
notice('MODULAR: vmware/vcenter.pp')
|
|
|
|
$libvirt_type = hiera('libvirt_type')
|
|
$use_vcenter = hiera('use_vcenter', false)
|
|
$vcenter_hash = hiera('vcenter_hash')
|
|
$controller_node_public = hiera('controller_node_public')
|
|
$use_neutron = hiera('use_neutron', false)
|
|
$ceilometer_hash = hiera('ceilometer',{})
|
|
$debug = hiera('debug', false)
|
|
|
|
echo($vcenter_hash)
|
|
|
|
# vCenter integration
|
|
if hiera('libvirt_type') == 'vcenter' {
|
|
class { 'vmware' :
|
|
vcenter_user => $vcenter_hash['vc_user'],
|
|
vcenter_password => $vcenter_hash['vc_password'],
|
|
vcenter_host_ip => $vcenter_hash['host_ip'],
|
|
vcenter_cluster => $vcenter_hash['cluster'],
|
|
vcenter_datastore_regex => $vcenter_hash['datastore_regex'],
|
|
vlan_interface => $vcenter_hash['vlan_interface'],
|
|
use_quantum => $use_neutron,
|
|
vnc_address => $controller_node_public,
|
|
ceilometer => $ceilometer_hash['enabled'],
|
|
debug => $debug,
|
|
}
|
|
}
|
|
# Fixme! This a temporary workaround to keep existing functioanality.
|
|
# After fully implementation of the multi HV support it is need to delete
|
|
# previos if statement
|
|
if $use_vcenter {
|
|
class { 'vmware' :
|
|
vcenter_settings => $vcenter_hash['computes'],
|
|
vlan_interface => $vcenter_hash['vlan_interface'],
|
|
use_quantum => $use_neutron,
|
|
vnc_address => $controller_node_public,
|
|
ceilometer => $ceilometer_hash['enabled'],
|
|
debug => $debug,
|
|
}
|
|
}
|