Puppet Class: prometheus::wmcs_scripts

Defined in:
modules/prometheus/manifests/wmcs_scripts.pp

Overview

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: present)


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

class prometheus::wmcs_scripts (
    Wmflib::Ensure $ensure = present,
) {
    # output all nova instances for the current labs project as prometheus
    # 'targets'
    file { '/usr/local/bin/prometheus-labs-targets':
        ensure => stdlib::ensure($ensure, 'file'),
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/prometheus/usr/local/bin/prometheus-labs-targets.py',
    }

    file { '/usr/local/bin/prometheus-labs-targets.sh':
        ensure => stdlib::ensure($ensure, 'file'),
        mode   => '0555',
        owner  => 'root',
        group  => 'root',
        source => 'puppet:///modules/prometheus/usr/local/bin/prometheus-labs-targets-timer',
    }
}