diff --git a/lib/puppet/provider/package/aptrpm.rb b/lib/puppet/provider/package/aptrpm.rb index 81edfaa1e06..50c4ac4bdd5 100644 --- a/lib/puppet/provider/package/aptrpm.rb +++ b/lib/puppet/provider/package/aptrpm.rb @@ -12,6 +12,8 @@ commands :aptcache => "apt-cache" commands :rpm => "rpm" + defaultfor :osfamily => "Altlinux" + # Mixing confine statements, control expressions, and exception handling # confuses Rubocop's Layout cops, so we disable them entirely. # rubocop:disable Layout diff --git a/spec/integration/type/package_spec.rb b/spec/integration/type/package_spec.rb index c4ae05f4f93..f897b644e8f 100644 --- a/spec/integration/type/package_spec.rb +++ b/spec/integration/type/package_spec.rb @@ -14,6 +14,8 @@ def provider_name(os) else :sun end + when 'ALT' + :aptrpm when 'Ubuntu' :apt when 'Debian'