Skip to content

Commit

Permalink
Remove support for provider zypper
Browse files Browse the repository at this point in the history
  • Loading branch information
dhoppe committed May 20, 2019
1 parent d41bd0d commit 91fb9b9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,6 @@ The supported installation modes for this module
* bundle
* puppet_gem
* gem
* zypper

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

}
default: { fail("${module_name}: ${provider} is not supported. Valid values are: 'gem', 'puppet_gem', 'bundle', 'openbsd', 'zypper'") }
default: { fail("${module_name}: ${provider} is not supported. Valid values are: 'gem', 'puppet_gem', 'bundle', 'openbsd'") }
}
}
24 changes: 0 additions & 24 deletions spec/classes/install_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -151,28 +151,4 @@
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

0 comments on commit 91fb9b9

Please sign in to comment.