Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove support for providers yum, zypper #489

Merged
merged 2 commits into from
May 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -778,11 +778,9 @@ The name of the package to be installed via the provider
##### `provider`
The supported installation modes for this module

* yum
* bundle
* puppet_gem
* gem
* zypper

##### `install_options`
Options to pass to the `provider` declaration
Expand Down
5 changes: 2 additions & 3 deletions manifests/install.pp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
$real_package_name = 'ruby22-r10k'
}
}
'yum': { $real_package_name = 'rubygem-r10k' }
default: { $real_package_name = 'r10k' }
}
} else {
Expand All @@ -30,7 +29,7 @@
'bundle': {
include r10k::install::bundle
}
'puppet_gem', 'gem', 'openbsd', 'yum', 'zypper': {
'puppet_gem', 'gem', 'openbsd': {
if $provider == 'gem' {
class { 'r10k::install::gem':
manage_ruby_dependency => $manage_ruby_dependency,
Expand Down Expand Up @@ -63,6 +62,6 @@
}

}
default: { fail("${module_name}: ${provider} is not supported. Valid values are: 'gem', 'puppet_gem', 'bundle', 'openbsd', 'yum', 'zypper'") }
default: { fail("${module_name}: ${provider} is not supported. Valid values are: 'gem', 'puppet_gem', 'bundle', 'openbsd'") }
}
}
41 changes: 0 additions & 41 deletions spec/classes/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -149,47 +149,6 @@
it { is_expected.to contain_class('r10k::install::bundle') }
it { is_expected.not_to contain_package('r10k') }
end

context 'with yum provider' do
let :params do
{
install_options: '',
keywords: '',
manage_ruby_dependency: 'declare',
package_name: 'rubygem-r10k',
provider: 'yum',
version: 'latest',
puppet_master: true
}
end

it { is_expected.not_to contain_class('git') }
it { is_expected.to contain_package('rubygem-r10k') }
end
end
end

context 'with zypper provider' do
let :params do
{
install_options: '',
keywords: '',
manage_ruby_dependency: 'declare',
package_name: 'r10k',
provider: 'zypper',
version: 'latest',
puppet_master: true
}
end
let :facts do
{
osfamily: 'Suse',
operatingsystemrelease: '11.3',
puppetversion: Puppet.version
}
end

it { is_expected.not_to contain_class('git') }
it { is_expected.to contain_package('r10k') }
end
end