Puppet Class: conftool::scripts

Defined in:
modules/conftool/manifests/scripts.pp

Overview

Class conftool::scripts

Install some useful scripts that can be used to pool/depool/drain a server from all the pools it is in.

Example:

class some::service {

user { 'foo': }

conftool::credentials { 'foo': }

include conftool::scripts

}



15
16
17
18
19
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
48
49
50
51
52
# File 'modules/conftool/manifests/scripts.pp', line 15

class conftool::scripts {
    file { '/usr/local/bin/pooler-loop':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/conftool/pooler_loop.rb',
    }

    file { [
        '/usr/local/bin/pool',
        '/usr/local/bin/depool',
        '/usr/local/bin/drain',
        '/usr/local/bin/decommission'
    ]:
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/conftool/conftool-simple-command.sh',
    }

    file { '/usr/local/bin/safe-service-restart':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/conftool/safe-service-restart.py'
    }

    file { '/usr/local/bin/ispooled':
        ensure => present,
        owner  => 'root',
        group  => 'root',
        mode   => '0555',
        source => 'puppet:///modules/conftool/ispooled.sh'
    }
}