Puppet Class: varnish::common::director_scripts

Defined in:
modules/varnish/manifests/common/director_scripts.pp

Overview



1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'modules/varnish/manifests/common/director_scripts.pp', line 1

class varnish::common::director_scripts {
    # The script that should restart varnish once the file is written.
    file { '/usr/local/bin/confd-reload-vcl':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0544',
        source => 'puppet:///modules/varnish/confd-reload-vcl.sh',
    }

    file { '/usr/local/lib/nagios/plugins/check_vcl_reload':
        ensure => 'present',
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/varnish/check_vcl_reload.sh';
    }


    # TODO: extend the check to everything including the exec in puppet?
    nrpe::monitor_service { 'confd_vcl_reload':
        description  => 'Confd vcl based reload',
        nrpe_command => '/usr/local/lib/nagios/plugins/check_vcl_reload',
        notes_url    => 'https://wikitech.wikimedia.org/wiki/Varnish',
    }
}