File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change 10
10
puppet_concat = '/usr/local/etc/puppet/puppet.conf'
11
11
puppet_directory = '/usr/local/etc/puppet'
12
12
puppet_package = "puppet#{ puppet_major } "
13
+ openvox_package = "openvox#{ puppet_major } "
13
14
puppetconf_mode = '0644'
14
15
when 'windows'
15
16
puppet_concat = 'C:/ProgramData/PuppetLabs/puppet/etc/puppet.conf'
20
21
puppet_concat = '/etc/puppetlabs/puppet/puppet.conf'
21
22
puppet_directory = '/etc/puppetlabs/puppet'
22
23
puppet_package = 'puppet'
24
+ openvox_package = 'openvox'
23
25
puppetconf_mode = '0644'
24
26
else
25
27
puppet_concat = '/etc/puppetlabs/puppet/puppet.conf'
26
28
puppet_directory = '/etc/puppetlabs/puppet'
27
29
puppet_package = 'puppet-agent'
30
+ openvox_package = 'openvox-agent'
28
31
puppetconf_mode = '0644'
29
32
end
30
33
45
48
}
46
49
end
47
50
51
+ describe 'with already installed packages' do
52
+ describe 'legacy Perforce opensource packages' do
53
+ let :facts do
54
+ facts . merge ( puppet_flavor : 'Puppet' )
55
+ end
56
+ it { should contain_package ( puppet_package )
57
+ . with_ensure ( 'present' )
58
+ . with_install_options ( nil )
59
+ }
60
+ end
61
+ describe 'OpenVox packages' do
62
+ let :facts do
63
+ facts . merge ( puppet_flavor : 'OpenVox' )
64
+ end
65
+ it { should contain_package ( openvox_package )
66
+ . with_ensure ( 'present' )
67
+ . with_install_options ( nil )
68
+ }
69
+ end
70
+ end
71
+
48
72
describe 'with server => true' , :unless => unsupported_puppetserver_osfamily ( facts [ :os ] [ 'family' ] ) do
49
73
let :params do {
50
74
:server => true ,
You can’t perform that action at this time.
0 commit comments