/[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 3391 - (show annotations) (download)
Sun Jan 5 01:09:55 2014 UTC (10 years, 3 months ago) by tmb
File size: 1371 byte(s)
enable git cloning of draklive-config
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 # subversion::snapshot { $config:
37 # source => "svn://svn.$::domain/soft/images-config/draklive/trunk/",
38 # }
39
40 git::snapshot { $config:
41 source => "git://git.$::domain/software/build-system/draklive-config",
42 }
43
44 cron { 'build live images':
45 command => "$config/tools/build_live.sh",
46 user => $login,
47 hour => '4',
48 minute => '30',
49 }
50
51 file { '/usr/local/bin/clean-live.sh':
52 mode => '0755',
53 source => 'puppet:///modules/draklive/clean-live.sh',
54 }
55
56 cron { 'clean live build data':
57 command => '/usr/local/bin/clean-live.sh',
58 hour => '4',
59 minute => '20',
60 }
61 }

  ViewVC Help
Powered by ViewVC 1.1.30