Puppet Class: profile::analytics::httpd::utils

Defined in:
modules/profile/manifests/analytics/httpd/utils.pp

Overview

Class profile::analytics::httpd::utils

This class should contain shared puppet code applied to all the analytics httpd instances.



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/profile/manifests/analytics/httpd/utils.pp', line 6

class profile::analytics::httpd::utils {

    if !defined(File['/var/www']) {
        file { '/var/www':
            ensure => directory,
            owner  => 'root',
            group  => 'root',
            mode   => '0755',
        }
    }

    if !defined(File['/var/www/health_check']) {
        # Allow a simple page to be used as health check.
        # Useful for Nagios monitors.
        file { '/var/www/health_check':
            ensure  => present,
            content => 'OK',
            mode    => '0444',
            require => File['/var/www'],
        }
    }
}