Revision 00073c0f
Added by Julien Pivotto almost 9 years ago
spec/classes/puppet_server_service_spec.rb | ||
---|---|---|
|
||
describe 'puppet::server::service' do
|
||
|
||
let :facts do {
|
||
:clientcert => 'puppetmaster.example.com',
|
||
:concat_basedir => '/nonexistant',
|
||
:fqdn => 'puppetmaster.example.com',
|
||
:operatingsystemrelease => '6.5',
|
||
:osfamily => 'RedHat',
|
||
:puppetversion => Puppet.version,
|
||
} end
|
||
if Puppet.version < '4.0'
|
||
additional_facts = {}
|
||
else
|
||
additional_facts = {:rubysitedir => '/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0'}
|
||
end
|
||
|
||
let :facts do on_supported_os['centos-6-x86_64'].merge({
|
||
:clientcert => 'puppetmaster.example.com',
|
||
:concat_basedir => '/nonexistant',
|
||
:fqdn => 'puppetmaster.example.com',
|
||
:puppetversion => Puppet.version,
|
||
}).merge(additional_facts) end
|
||
|
||
describe 'default_parameters' do
|
||
it { should_not contain_service('puppetmaster') }
|
Also available in: Unified diff
Deal with systems without AIO packages
instead use the rubylibdir fact.
This commit does not allow you to switch to from Puppet 3 to Puppet-AIO
package.
Closes GH-290