summaryrefslogtreecommitdiff
path: root/manifests/mod.pp
blob: eaa6069c21a183fdb25a465e1a2958c0d141b66f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# defined type to wrap httpd_mod
# httpd_mod doesn't ensure that the service is up first, this does
define httpd::mod (
  $ensure = present,
) {

  if $::osfamily == 'Debian' {
    httpd_mod { $name:
      ensure => $ensure,
      notify => Service['httpd'],
    }
  }
  if $::osfamily == 'RedHat' {
    debug('Enabling modules is a noop on redhat, doing nothing')
  }

}