compute: Change Spice for VNC
Signed-off-by: Emilien Macchi <emilien.macchi@enovance.com>
This commit is contained in:
parent
57bb8b9b12
commit
061f9799ec
@ -30,7 +30,8 @@ class privatecloud::compute::controller(
|
|||||||
'nova::cert',
|
'nova::cert',
|
||||||
'nova::consoleauth',
|
'nova::consoleauth',
|
||||||
'nova::conductor',
|
'nova::conductor',
|
||||||
'nova::spicehtml5proxy',
|
# TODO(Emilien) Migrate to spice asap
|
||||||
|
'nova::vncproxy',
|
||||||
]:
|
]:
|
||||||
enabled => true,
|
enabled => true,
|
||||||
}
|
}
|
||||||
|
@ -17,10 +17,13 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
class privatecloud::compute::hypervisor(
|
class privatecloud::compute::hypervisor(
|
||||||
$api_eth = $os_params::api_eth,
|
$api_eth = $os_params::api_eth,
|
||||||
$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_public_key = $os_params::nova_ssh_public_key
|
||||||
) {
|
) {
|
||||||
|
|
||||||
include 'privatecloud::compute'
|
include 'privatecloud::compute'
|
||||||
@ -46,14 +49,14 @@ class privatecloud::compute::hypervisor(
|
|||||||
mode => '0600',
|
mode => '0600',
|
||||||
owner => 'nova',
|
owner => 'nova',
|
||||||
group => 'nova',
|
group => 'nova',
|
||||||
content => $os_params::nova_ssh_private_key
|
content => $nova_ssh_private_key
|
||||||
} ->
|
} ->
|
||||||
file{ '/var/lib/nova/.ssh/authorized_keys':
|
file{ '/var/lib/nova/.ssh/authorized_keys':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
mode => '0600',
|
mode => '0600',
|
||||||
owner => 'nova',
|
owner => 'nova',
|
||||||
group => 'nova',
|
group => 'nova',
|
||||||
content => $os_params::nova_ssh_public_key
|
content => $nova_ssh_public_key
|
||||||
} ->
|
} ->
|
||||||
file{ '/var/lib/nova/.ssh/config':
|
file{ '/var/lib/nova/.ssh/config':
|
||||||
ensure => present,
|
ensure => present,
|
||||||
@ -67,11 +70,12 @@ Host *
|
|||||||
}
|
}
|
||||||
|
|
||||||
class { 'nova::compute':
|
class { 'nova::compute':
|
||||||
enabled => true,
|
enabled => true,
|
||||||
vnc_enabled => false,
|
vncproxy_host => $ks_nova_public_host,
|
||||||
#TODO(EmilienM) Bug #1259545 currently WIP
|
vncserver_proxyclient_address => $api_eth,
|
||||||
virtio_nic => false,
|
#TODO(EmilienM) Bug #1259545 currently WIP:
|
||||||
neutron_enabled => true
|
virtio_nic => false,
|
||||||
|
neutron_enabled => true
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'nova::compute::libvirt':
|
class { 'nova::compute::libvirt':
|
||||||
@ -88,14 +92,6 @@ Host *
|
|||||||
refreshonly => true
|
refreshonly => true
|
||||||
}
|
}
|
||||||
|
|
||||||
class { 'nova::compute::spice':
|
|
||||||
agent_enabled => true,
|
|
||||||
server_listen => '0.0.0.0',
|
|
||||||
server_proxyclient_address => $api_eth,
|
|
||||||
proxy_protocol => $ks_nova_internal_proto,
|
|
||||||
proxy_host => $ks_nova_internal_host,
|
|
||||||
}
|
|
||||||
|
|
||||||
class { 'nova::compute::neutron': }
|
class { 'nova::compute::neutron': }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -72,8 +72,8 @@ describe 'privatecloud::compute::controller' do
|
|||||||
should contain_class('nova::conductor').with(:enabled => true)
|
should contain_class('nova::conductor').with(:enabled => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure nova-spircehtml5proxy' do
|
it 'configure nova-vncproxy' do
|
||||||
should contain_class('nova::spicehtml5proxy').with(:enabled => true)
|
should contain_class('nova::vncproxy').with(:enabled => true)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure nova-api' do
|
it 'configure nova-api' do
|
||||||
@ -101,7 +101,7 @@ describe 'privatecloud::compute::controller' do
|
|||||||
end
|
end
|
||||||
|
|
||||||
#TODO(Emilien) Problem with Spice: http://paste.openstack.org/show/pxIyzg5gqeJVR2nUPtoB/
|
#TODO(Emilien) Problem with Spice: http://paste.openstack.org/show/pxIyzg5gqeJVR2nUPtoB/
|
||||||
# it_configures 'openstack compute controller'
|
it_configures 'openstack compute controller'
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
@ -38,7 +38,10 @@ describe 'privatecloud::compute::hypervisor' do
|
|||||||
let :params do
|
let :params do
|
||||||
{ :libvirt_type => 'kvm',
|
{ :libvirt_type => 'kvm',
|
||||||
:api_eth => '10.0.0.1',
|
:api_eth => '10.0.0.1',
|
||||||
|
:nova_ssh_private_key => 'secrete',
|
||||||
|
: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
|
||||||
|
|
||||||
@ -58,10 +61,11 @@ describe 'privatecloud::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,
|
||||||
:vnc_enabled => false,
|
:vncproxy_host => '7.7.7.7',
|
||||||
:virtio_nic => false,
|
:vncserver_proxyclient_address => '10.0.0.1',
|
||||||
:neutron_enabled => true
|
:virtio_nic => false,
|
||||||
|
:neutron_enabled => true
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -73,16 +77,6 @@ describe 'privatecloud::compute::hypervisor' do
|
|||||||
)
|
)
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'configure nova spice agent' do
|
|
||||||
should contain_class('nova::compute::spice').with(
|
|
||||||
:agent_enabled => true,
|
|
||||||
:server_listen => '0.0.0.0',
|
|
||||||
:server_proxyclient_address => '10.0.0.1',
|
|
||||||
:proxy_protocol => 'http',
|
|
||||||
:proxy_host => '10.0.0.1'
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'configure nova compute with neutron' do
|
it 'configure nova compute with neutron' do
|
||||||
should contain_class('nova::compute::neutron')
|
should contain_class('nova::compute::neutron')
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user