Add vncproxy class

Adds a class to perform package installation for
vncproxy.
This commit is contained in:
Dan Bode 2012-04-01 14:25:25 -07:00
parent 616c4763c7
commit 1b5b3a3e33
2 changed files with 38 additions and 0 deletions

10
manifests/vncproxy.pp Normal file
View File

@ -0,0 +1,10 @@
class nova::vncproxy(
) {
Package['nova-vncproxy'] -> Exec<| title == 'initial-db-sync' |>
package { 'nova-vncproxy':
ensure => present,
}
}

View 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