Puppet Class: profile::installserver::tftp

Defined in:
modules/profile/manifests/installserver/tftp.pp

Overview

Parameters:

  • ensure_service (Enum['stopped', 'running']) (defaults to: lookup('profile::installserver::tftp::ensure_service'))


20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'modules/profile/manifests/installserver/tftp.pp', line 20

class profile::installserver::tftp (
    Enum['stopped', 'running'] $ensure_service = lookup('profile::installserver::tftp::ensure_service'),
){

    class { '::install_server::tftp_server':
        ensure_service => $ensure_service,
    }

    ferm::service { 'tftp':
        proto  => 'udp',
        port   => 'tftp',
        srange => '$PRODUCTION_NETWORKS',
    }

    backup::set { 'srv-tftpboot': }

    $ensure_monitor = $ensure_service ? {
        'stopped' => 'absent',
        default   => 'present',
    }

    nrpe::monitor_service { 'atftpd':
        ensure       => $ensure_monitor,
        description  => 'TFTP service',
        nrpe_command => '/usr/lib/nagios/plugins/check_procs -c 1:1 -u nobody --ereg-argument-array=\'.*/usr/sbin/atftpd .*\'',
        notes_url    => 'https://wikitech.wikimedia.org/wiki/Monitoring/atftpd',
    }
}