Skip to content

Commit

Permalink
Amazon Linux v2 should use the new fcontext filetype format
Browse files Browse the repository at this point in the history
  • Loading branch information
Balazs Nadasdi committed Dec 20, 2019
1 parent 7b58738 commit ce94b27
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/puppet/provider/selinux_fcontext/semanage.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

mk_resource_methods

osfamily = Facter.value('osfamily')
osversion = Facter.value('operatingsystemmajrelease')
osfamily = Facter.value('osfamily')
osversion = Facter.value('operatingsystemmajrelease')
operatingsystem = Facter.value('operatingsystem')
@old_semanage = false
if (osfamily == 'RedHat') && (Puppet::Util::Package.versioncmp(osversion, '6') <= 0)
if (osfamily == 'RedHat') && (Puppet::Util::Package.versioncmp(osversion, '6') <= 0) && (operatingsystem != 'Amazon')
@old_semanage = true
end

Expand Down

0 comments on commit ce94b27

Please sign in to comment.