/[adm]/puppet/modules/draklive/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/draklive/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3392 - (show annotations) (download)
Sun Jan 5 01:12:52 2014 UTC (4 years, 8 months ago) by tmb
File size: 1249 byte(s)
drop disabled subversion snapshotting
1 class draklive {
2 $login = 'draklive'
3 $home = '/home/draklive'
4 $config = "$home/live-config"
5 $var_data = "$home/var-data"
6 # TODO merge with bcd
7 $isomakers_group = 'mga-iso_makers'
8
9 include sudo
10
11 group { $login: }
12
13 user { $login:
14 home => $home,
15 comment => 'User for creating live ISOs',
16 }
17
18 package { 'draklive': }
19
20 sudo::sudoers_config { 'draklive':
21 content => template('draklive/sudoers.draklive')
22 }
23
24 file { $var_data:
25 ensure => directory,
26 owner => $login,
27 group => $login,
28 mode => '0755',
29 }
30
31 file { '/var/lib/draklive':
32 ensure => symlink,
33 target => $var_data,
34 }
35
36 git::snapshot { $config:
37 source => "git://git.$::domain/software/build-system/draklive-config",
38 }
39
40 cron { 'build live images':
41 command => "$config/tools/build_live.sh",
42 user => $login,
43 hour => '4',
44 minute => '30',
45 }
46
47 file { '/usr/local/bin/clean-live.sh':
48 mode => '0755',
49 source => 'puppet:///modules/draklive/clean-live.sh',
50 }
51
52 cron { 'clean live build data':
53 command => '/usr/local/bin/clean-live.sh',
54 hour => '4',
55 minute => '20',
56 }
57 }

  ViewVC Help
Powered by ViewVC 1.1.26