Add vncproxy class
Adds a class to perform package installation for vncproxy.
This commit is contained in:
parent
616c4763c7
commit
1b5b3a3e33
10
manifests/vncproxy.pp
Normal file
10
manifests/vncproxy.pp
Normal file
@ -0,0 +1,10 @@
|
||||
class nova::vncproxy(
|
||||
) {
|
||||
|
||||
Package['nova-vncproxy'] -> Exec<| title == 'initial-db-sync' |>
|
||||
|
||||
package { 'nova-vncproxy':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
}
|
28
spec/classes/nova_vnc_proxy_spec.rb
Normal file
28
spec/classes/nova_vnc_proxy_spec.rb
Normal file
@ -0,0 +1,28 @@
|
||||
require 'spec_helper'
|
||||
|
||||
describe 'nova::vncproxy' do
|
||||
|
||||
let :pre_condition do
|
||||
'include nova'
|
||||
end
|
||||
|
||||
describe 'on debian platforms' do
|
||||
let :facts do
|
||||
{ :osfamily => 'Debian' }
|
||||
end
|
||||
|
||||
it { should contain_package('nova-vncproxy').with(
|
||||
'ensure' => 'present',
|
||||
'before' => nil
|
||||
)}
|
||||
describe 'when deployed on the API server' do
|
||||
let :pre_condition do
|
||||
'include nova::api'
|
||||
end
|
||||
it { should contain_package('nova-vncproxy').with(
|
||||
'ensure' => 'present',
|
||||
'before' => 'Exec[initial-db-sync]'
|
||||
)}
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue
Block a user