Project

General

Profile

« Previous | Next » 

Revision a64c58e8

Added by Dominic Cleal over 8 years ago

refs #4841 - change EL OSes to use 'tfm' SCL prefix

Parameters are supplied on the main foreman class to revert behaviour
for Foreman 1.9 and prior, plus on three plugin classes with
non-standard package names.

Closes GH-348

View differences:

spec/classes/foreman_plugin_puppetdb_spec.rb
require 'spec_helper'
describe 'foreman::plugin::puppetdb' do
let :facts do {
:osfamily => 'Debian',
} end
on_supported_os.each do |os, facts|
context "on #{os}" do
let :facts do
facts
end
it 'should call the plugin' do
should contain_foreman__plugin('puppetdb').with_package('ruby-puppetdb-foreman')
if facts[:operatingsystem] == 'Fedora'
it 'should call the plugin' do
should contain_foreman__plugin('puppetdb').with_package('rubygem-puppetdb_foreman')
end
elsif facts[:osfamily] == 'RedHat'
it 'should call the plugin' do
should contain_foreman__plugin('puppetdb').with_package('tfm-rubygem-puppetdb_foreman')
end
elsif facts[:osfamily] == 'Debian'
it 'should call the plugin' do
should contain_foreman__plugin('puppetdb').with_package('ruby-puppetdb-foreman')
end
end
end
end
end

Also available in: Unified diff