Puppet Class: nagios::base::withwebinterface

Inherits:
nagios::base
Defined in:
manifests/base/withwebinterface.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# File 'manifests/base/withwebinterface.pp', line 1

class nagios::base::withwebinterface inherits nagios::base {
  case $::osfamily {
    'Debian': {
      $group = 'www-data'
    }
    'RedHat': {
      $group = 'apache'
    }
    default: {
      fail "Unsupported osfamily: ${::osfamily}"
    }
  }
  File['nagios read-write dir'] {
    group => $group,
  }
}