On Debian *OS* the vnc package/service is novnc
This commit is contained in:
parent
0b841f60e9
commit
1760675d1d
@ -46,7 +46,6 @@ class nova::params {
|
|||||||
$doc_package_name = 'nova-doc'
|
$doc_package_name = 'nova-doc'
|
||||||
$libvirt_package_name = 'libvirt-bin'
|
$libvirt_package_name = 'libvirt-bin'
|
||||||
$network_package_name = 'nova-network'
|
$network_package_name = 'nova-network'
|
||||||
$vncproxy_package_name = ['novnc', 'nova-novncproxy']
|
|
||||||
$numpy_package_name = 'python-numpy'
|
$numpy_package_name = 'python-numpy'
|
||||||
$objectstore_package_name = 'nova-objectstore'
|
$objectstore_package_name = 'nova-objectstore'
|
||||||
$scheduler_package_name = 'nova-scheduler'
|
$scheduler_package_name = 'nova-scheduler'
|
||||||
@ -59,7 +58,6 @@ class nova::params {
|
|||||||
$consoleauth_service_name = 'nova-consoleauth'
|
$consoleauth_service_name = 'nova-consoleauth'
|
||||||
$libvirt_service_name = 'libvirt-bin'
|
$libvirt_service_name = 'libvirt-bin'
|
||||||
$network_service_name = 'nova-network'
|
$network_service_name = 'nova-network'
|
||||||
$vncproxy_service_name = 'nova-novncproxy'
|
|
||||||
$objectstore_service_name = 'nova-objectstore'
|
$objectstore_service_name = 'nova-objectstore'
|
||||||
$scheduler_service_name = 'nova-scheduler'
|
$scheduler_service_name = 'nova-scheduler'
|
||||||
$volume_service_name = 'nova-volume'
|
$volume_service_name = 'nova-volume'
|
||||||
@ -71,11 +69,15 @@ class nova::params {
|
|||||||
case $::operatingsystem {
|
case $::operatingsystem {
|
||||||
'Debian': {
|
'Debian': {
|
||||||
$consoleauth_package_name = 'nova-console'
|
$consoleauth_package_name = 'nova-console'
|
||||||
|
$vncproxy_package_name = 'novnc'
|
||||||
|
$vncproxy_service_name = 'novnc'
|
||||||
# Use default provider on Debian
|
# Use default provider on Debian
|
||||||
$special_service_provider = undef
|
$special_service_provider = undef
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
$consoleauth_package_name = 'nova-consoleauth'
|
$consoleauth_package_name = 'nova-consoleauth'
|
||||||
|
$vncproxy_package_name = ['novnc', 'nova-novncproxy']
|
||||||
|
$vncproxy_service_name = 'nova-novncproxy'
|
||||||
# some of the services need to be started form the special upstart provider
|
# some of the services need to be started form the special upstart provider
|
||||||
$special_service_provider = 'upstart'
|
$special_service_provider = 'upstart'
|
||||||
}
|
}
|
||||||
|
@ -43,6 +43,20 @@ describe 'nova::vncproxy' do
|
|||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
describe 'on debian OS' do
|
||||||
|
let :facts do
|
||||||
|
{ :osfamily => 'Debian', :operatingsystem => 'Debian' }
|
||||||
|
end
|
||||||
|
it { should contain_package('nova-vncproxy').with(
|
||||||
|
:name => "novnc",
|
||||||
|
:ensure => 'present'
|
||||||
|
)}
|
||||||
|
it { should contain_service('nova-vncproxy').with(
|
||||||
|
:name => 'novnc',
|
||||||
|
:ensure => 'running'
|
||||||
|
)}
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
describe 'on Redhatish platforms' do
|
describe 'on Redhatish platforms' do
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user