/[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 2569 - (hide annotations) (download)
Sat Mar 17 11:40:32 2012 UTC (9 years, 10 months ago) by misc
File size: 1281 byte(s)
- clean the module,
- merge all in one single module,
- do not use draklive_ prefix for namespacing purpose, as this not used
or better replaced by real puppet namespace
- fix puppet-lint complaint
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     managehome => true,
16     comment => 'User for creating live ISOs',
17     }
18 blino 1314
19 misc 2569 package { 'draklive': }
20 blino 1314
21 misc 2569 sudo::sudoers_config { 'draklive':
22     content => template('draklive/sudoers.draklive')
23     }
24 blino 1314
25 misc 2569 file { $var_data:
26 blino 1314 ensure => directory,
27 misc 2569 owner => $login,
28     group => $login,
29     mode => '0755',
30 blino 1314 }
31    
32 misc 2569 file { '/var/lib/draklive':
33 blino 1324 ensure => symlink,
34 misc 2569 target => $var_data,
35 blino 1324 }
36    
37 misc 2569 subversion::snapshot { $config:
38     source => "svn://svn.$::domain/soft/images-config/draklive/trunk/",
39     }
40 blino 1651
41 misc 2569 cron { 'build live images':
42     command => "$config/tools/build_live.sh",
43     user => $login,
44     hour => '4',
45     minute => '30',
46     }
47 blino 1703
48 misc 2569 file { '/usr/local/bin/clean-live.sh':
49     mode => '0755',
50     source => 'puppet:///modules/draklive/clean-live.sh',
51     }
52 blino 1703
53 misc 2569 cron { 'clean live build data':
54     command => '/usr/local/bin/clean-live.sh',
55     hour => '4',
56     minute => '20',
57 blino 1314 }
58     }

  ViewVC Help
Powered by ViewVC 1.1.28