|
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'
|
16 | 17 | puppet_directory = 'C:/ProgramData/PuppetLabs/puppet/etc'
|
17 | 18 | puppet_package = 'puppet-agent'
|
| 19 | + openvox_package = 'openvox-agent' |
18 | 20 | puppetconf_mode = '0674'
|
19 | 21 | when 'Archlinux'
|
20 | 22 | puppet_concat = '/etc/puppetlabs/puppet/puppet.conf'
|
21 | 23 | puppet_directory = '/etc/puppetlabs/puppet'
|
22 | 24 | puppet_package = 'puppet'
|
| 25 | + openvox_package = 'openvox' |
23 | 26 | puppetconf_mode = '0644'
|
24 | 27 | else
|
25 | 28 | puppet_concat = '/etc/puppetlabs/puppet/puppet.conf'
|
26 | 29 | puppet_directory = '/etc/puppetlabs/puppet'
|
27 | 30 | puppet_package = 'puppet-agent'
|
| 31 | + openvox_package = 'openvox-agent' |
28 | 32 | puppetconf_mode = '0644'
|
29 | 33 | end
|
30 | 34 |
|
|
45 | 49 | }
|
46 | 50 | end
|
47 | 51 |
|
| 52 | + describe 'with already installed packages' do |
| 53 | + describe 'legacy Perforce opensource packages' do |
| 54 | + let :facts do |
| 55 | + facts.merge(puppet_flavor: 'Puppet') |
| 56 | + end |
| 57 | + it { should contain_package(puppet_package) |
| 58 | + .with_ensure('present') |
| 59 | + .with_install_options(nil) |
| 60 | + } |
| 61 | + end |
| 62 | + describe 'OpenVox packages' do |
| 63 | + let :facts do |
| 64 | + facts.merge(puppet_flavor: 'OpenVox') |
| 65 | + end |
| 66 | + it { should contain_package(openvox_package) |
| 67 | + .with_ensure('present') |
| 68 | + .with_install_options(nil) |
| 69 | + } |
| 70 | + end |
| 71 | + end |
| 72 | + |
48 | 73 | describe 'with server => true', :unless => unsupported_puppetserver_osfamily(facts[:os]['family']) do
|
49 | 74 | let :params do {
|
50 | 75 | :server => true,
|
|
0 commit comments