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
# 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',
    }
}