]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
22090 - Use list of RedHat OSes from newer facter.
authorSharif Nassar <sharif@mediatemple.net>
Tue, 6 Aug 2013 21:18:25 +0000 (14:18 -0700)
committerSharif Nassar <sharif@mediatemple.net>
Wed, 7 Aug 2013 21:19:11 +0000 (14:19 -0700)
lib/puppet/util/firewall.rb
manifests/linux.pp

index 99b9c573b8ff171c4cec5cbf9838fa18d024e825..13c1a89b113c2731440deee48952e6d876d44880 100644 (file)
@@ -136,7 +136,7 @@ module Puppet::Util::Firewall
     # Basic normalisation for older Facter
     os_key = Facter.value(:osfamily)
     os_key ||= case Facter.value(:operatingsystem)
-    when 'RedHat', 'CentOS', 'Fedora', 'SL', 'SLC'
+    when 'RedHat', 'CentOS', 'Fedora', 'Scientific', 'SL', 'SLC', 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL', 'Amazon', 'XenServer'
       'RedHat'
     when 'Debian', 'Ubuntu'
       'Debian'
index f8178f228f450007f85d51c41358ad9b0a2945ab..0e774567fb9670cd5070a28dff0ba546a79805b2 100644 (file)
@@ -24,7 +24,7 @@ class firewall::linux (
   }
 
   case $::operatingsystem {
-    'RedHat', 'CentOS', 'Fedora', 'SL', 'SLC': {
+    'RedHat', 'CentOS', 'Fedora', 'Scientific', 'SL', 'SLC', 'Ascendos', 'CloudLinux', 'PSBM', 'OracleLinux', 'OVS', 'OEL', 'Amazon', 'XenServer': {
       class { "${title}::redhat":
         ensure  => $ensure,
         enable  => $enable,