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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.28