Project

General

Profile

« Previous | Next » 

Revision 00073c0f

Added by Julien Pivotto almost 9 years ago

Deal with systems without AIO packages

  • Do not only rely on version to see if we use AIO package,
    instead use the rubylibdir fact.
  • Fix directory ownership without puppet user
  • Add package 'source' parameter to be used (mainly) with Windows
  • Adjust tests

This commit does not allow you to switch to from Puppet 3 to Puppet-AIO
package.

Closes GH-290

View differences:

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