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
53
54
55
56
57
|
class draklive {
$login = 'draklive'
$home = '/home/draklive'
$config = "$home/live-config"
$var_data = "$home/var-data"
# TODO merge with bcd
$isomakers_group = 'mga-iso_makers'
include sudo
group { $login: }
user { $login:
home => $home,
comment => 'User for creating live ISOs',
}
package { 'draklive': }
sudo::sudoers_config { 'draklive':
content => template('draklive/sudoers.draklive')
}
file { $var_data:
ensure => directory,
owner => $login,
group => $login,
mode => '0755',
}
file { '/var/lib/draklive':
ensure => symlink,
target => $var_data,
}
subversion::snapshot { $config:
source => "svn://svn.$::domain/soft/images-config/draklive/trunk/",
}
cron { 'build live images':
command => "$config/tools/build_live.sh",
user => $login,
hour => '4',
minute => '30',
}
file { '/usr/local/bin/clean-live.sh':
mode => '0755',
source => 'puppet:///modules/draklive/clean-live.sh',
}
cron { 'clean live build data':
command => '/usr/local/bin/clean-live.sh',
hour => '4',
minute => '20',
}
}
|