commit
b24db307dc
@ -34,9 +34,7 @@ class cloud::compute::controller(
|
|||||||
'nova::cert',
|
'nova::cert',
|
||||||
'nova::consoleauth',
|
'nova::consoleauth',
|
||||||
'nova::conductor',
|
'nova::conductor',
|
||||||
# TODO(Emilien) Migrate to spice asap
|
'nova::spicehtml5proxy'
|
||||||
#'nova::spicehtml5proxy',
|
|
||||||
'nova::vncproxy',
|
|
||||||
]:
|
]:
|
||||||
enabled => true,
|
enabled => true,
|
||||||
}
|
}
|
||||||
|
@ -27,14 +27,14 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
class cloud::compute::hypervisor(
|
class cloud::compute::hypervisor(
|
||||||
$api_eth = $os_params::api_eth,
|
$server_proxyclient_address = $os_params::internal_netif_ip,
|
||||||
$libvirt_type = $os_params::libvirt_type,
|
$libvirt_type = $os_params::libvirt_type,
|
||||||
$ks_nova_internal_proto = $os_params::ks_nova_internal_proto,
|
$ks_nova_internal_proto = $os_params::ks_nova_internal_proto,
|
||||||
$ks_nova_internal_host = $os_params::ks_nova_internal_host,
|
$ks_nova_internal_host = $os_params::ks_nova_internal_host,
|
||||||
$ks_nova_public_host = $os_params::ks_nova_public_host,
|
$nova_ssh_private_key = $os_params::nova_ssh_private_key,
|
||||||
$nova_ssh_private_key = $os_params::nova_ssh_private_key,
|
$nova_ssh_public_key = $os_params::nova_ssh_public_key,
|
||||||
$nova_ssh_public_key = $os_params::nova_ssh_public_key,
|
$spice_port = $os_params::spice_port,
|
||||||
$has_ceph = false
|
$has_ceph = false
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include 'cloud::compute'
|
include 'cloud::compute'
|
||||||
@ -81,16 +81,25 @@ Host *
|
|||||||
}
|
}
|
||||||
|
|
||||||
class { 'nova::compute':
|
class { 'nova::compute':
|
||||||
enabled => true,
|
enabled => true,
|
||||||
vncproxy_host => $ks_nova_public_host,
|
vnc_enabled => false,
|
||||||
vncserver_proxyclient_address => $api_eth,
|
|
||||||
#TODO(EmilienM) Bug #1259545 currently WIP:
|
#TODO(EmilienM) Bug #1259545 currently WIP:
|
||||||
virtio_nic => false,
|
virtio_nic => false,
|
||||||
neutron_enabled => true
|
neutron_enabled => true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class { 'nova::compute::spice':
|
||||||
|
server_listen => '0.0.0.0',
|
||||||
|
server_proxyclient_address => $server_proxyclient_address,
|
||||||
|
proxy_host => $ks_nova_internal_host,
|
||||||
|
proxy_protocol => $ks_nova_internal_proto,
|
||||||
|
proxy_port => $spice_port
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
class { 'nova::compute::libvirt':
|
class { 'nova::compute::libvirt':
|
||||||
libvirt_type => $libvirt_type,
|
libvirt_type => $libvirt_type,
|
||||||
|
# Needed to support migration but we still use Spice:
|
||||||
vncserver_listen => '0.0.0.0',
|
vncserver_listen => '0.0.0.0',
|
||||||
migration_support => true,
|
migration_support => true,
|
||||||
}
|
}
|
||||||
|
@ -41,8 +41,6 @@ class cloud::loadbalancer(
|
|||||||
$ks_cinder_public_port = $os_params::ks_cinder_public_port,
|
$ks_cinder_public_port = $os_params::ks_cinder_public_port,
|
||||||
$ks_ceilometer_public_port = $os_params::ks_ceilometer_public_port,
|
$ks_ceilometer_public_port = $os_params::ks_ceilometer_public_port,
|
||||||
$ks_ec2_public_port = $os_params::ks_ec2_public_port,
|
$ks_ec2_public_port = $os_params::ks_ec2_public_port,
|
||||||
# TODO(Gonéri): will have to use os_params::ks_glance_api_public_port
|
|
||||||
# here in the future
|
|
||||||
$ks_glance_api_public_port = $os_params::ks_glance_api_public_port,
|
$ks_glance_api_public_port = $os_params::ks_glance_api_public_port,
|
||||||
$ks_glance_registry_internal_port = $os_params::ks_glance_registry_internal_port,
|
$ks_glance_registry_internal_port = $os_params::ks_glance_registry_internal_port,
|
||||||
$ks_heat_public_port = $os_params::ks_heat_public_port,
|
$ks_heat_public_port = $os_params::ks_heat_public_port,
|
||||||
|
@ -75,6 +75,10 @@ describe 'cloud::compute::controller' do
|
|||||||
should contain_class('nova::scheduler').with(:enabled => true)
|
should contain_class('nova::scheduler').with(:enabled => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'configure nova-spicehtml5proxy' do
|
||||||
|
should contain_class('nova::spicehtml5proxy').with(:enabled => true)
|
||||||
|
end
|
||||||
|
|
||||||
it 'configure nova-cert' do
|
it 'configure nova-cert' do
|
||||||
should contain_class('nova::cert').with(:enabled => true)
|
should contain_class('nova::cert').with(:enabled => true)
|
||||||
end
|
end
|
||||||
@ -87,10 +91,6 @@ describe 'cloud::compute::controller' do
|
|||||||
should contain_class('nova::conductor').with(:enabled => true)
|
should contain_class('nova::conductor').with(:enabled => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure nova-vncproxy' do
|
|
||||||
should contain_class('nova::vncproxy').with(:enabled => true)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'configure nova-api' do
|
it 'configure nova-api' do
|
||||||
should contain_class('nova::api').with(
|
should contain_class('nova::api').with(
|
||||||
:enabled => true,
|
:enabled => true,
|
||||||
|
@ -39,11 +39,11 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
|
|
||||||
let :params do
|
let :params do
|
||||||
{ :libvirt_type => 'kvm',
|
{ :libvirt_type => 'kvm',
|
||||||
:api_eth => '10.0.0.1',
|
:server_proxyclient_address => '7.0.0.1',
|
||||||
|
:spice_port => '6082',
|
||||||
:nova_ssh_private_key => 'secrete',
|
:nova_ssh_private_key => 'secrete',
|
||||||
:nova_ssh_public_key => 'public',
|
:nova_ssh_public_key => 'public',
|
||||||
:ks_nova_internal_proto => 'http',
|
:ks_nova_internal_proto => 'http',
|
||||||
:ks_nova_public_host => '7.7.7.7',
|
|
||||||
:ks_nova_internal_host => '10.0.0.1' }
|
:ks_nova_internal_host => '10.0.0.1' }
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -78,13 +78,22 @@ describe 'cloud::compute::hypervisor' do
|
|||||||
it 'configure nova-compute' do
|
it 'configure nova-compute' do
|
||||||
should contain_class('nova::compute').with(
|
should contain_class('nova::compute').with(
|
||||||
:enabled => true,
|
:enabled => true,
|
||||||
:vncproxy_host => '7.7.7.7',
|
:vnc_enabled => false,
|
||||||
:vncserver_proxyclient_address => '10.0.0.1',
|
|
||||||
:virtio_nic => false,
|
:virtio_nic => false,
|
||||||
:neutron_enabled => true
|
:neutron_enabled => true
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
it 'configure spice console' do
|
||||||
|
should contain_class('nova::compute::spice').with(
|
||||||
|
:server_listen => '0.0.0.0',
|
||||||
|
:server_proxyclient_address => '7.0.0.1',
|
||||||
|
:proxy_host => '10.0.0.1',
|
||||||
|
:proxy_protocol => 'http',
|
||||||
|
:proxy_port => '6082'
|
||||||
|
)
|
||||||
|
end
|
||||||
|
|
||||||
it 'configure libvirt driver' do
|
it 'configure libvirt driver' do
|
||||||
should contain_class('nova::compute::libvirt').with(
|
should contain_class('nova::compute::libvirt').with(
|
||||||
:libvirt_type => 'kvm',
|
:libvirt_type => 'kvm',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user