summaryrefslogtreecommitdiff
path: root/puppet/modules/rubygems/manifests/mail.pp
blob: b8b50bbe7e66d21ecc978ae3e820aba9390025a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# manage the mail rubygem
class rubygems::mail {
  if ($::osfamily == 'RedHat') and
    versioncmp($::operatingsystemrelease,'6') > 0 {
    package{'rubygem-mail':
      ensure => present,
    }
  } else {
    require rubygems::devel
    package{'mail':
      ensure   => present,
      provider => gem,
    }

    if $::rubyversion == '1.8.6' {
      require rubygems::tlsmail
    }
  }
}