/
scripts.pp
52 lines (49 loc) · 1.27 KB
/
scripts.pp
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
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
# == 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
#}
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'
}
}