Skip to content

Commit

Permalink
Uninstall sendmail in RedHat < 7
Browse files Browse the repository at this point in the history
  • Loading branch information
mcanevet committed Nov 13, 2015
1 parent 1cbcf8d commit f092961
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions manifests/packages.pp
@@ -1,6 +1,12 @@
class postfix::packages {
include ::postfix::params

if $::osfamily == 'RedHat' and versioncmp($::operatingsystemmajrelease, '6') <= 0 {
package { 'sendmail':
ensure => absent,
}
}

package { 'postfix':
ensure => $postfix::postfix_ensure,
}
Expand Down

0 comments on commit f092961

Please sign in to comment.