Revision 00073c0f
Added by Julien Pivotto almost 9 years ago
spec/classes/puppet_agent_spec.rb | ||
---|---|---|
describe 'puppet::agent' do
|
||
|
||
let :default_facts do
|
||
{
|
||
on_supported_os['centos-6-x86_64'].merge({
|
||
:clientcert => 'puppetmaster.example.com',
|
||
:concat_basedir => '/nonexistant',
|
||
:fqdn => 'puppetmaster.example.com',
|
||
:operatingsystemrelease => '6.5',
|
||
:osfamily => 'RedHat',
|
||
:puppetversion => Puppet.version,
|
||
}
|
||
})
|
||
end
|
||
|
||
let :facts do
|
||
default_facts
|
||
if Puppet.version < '4.0'
|
||
default_facts
|
||
else
|
||
default_facts.merge({:rubysitedir => '/opt/puppetlabs/puppet/lib/ruby/site_ruby/2.1.0'})
|
||
end
|
||
end
|
||
|
||
describe 'with no custom parameters' do
|
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