/[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 2569 - (show annotations) (download)
Sat Mar 17 11:40:32 2012 UTC (8 years, 2 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 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 managehome => true,
16 comment => 'User for creating live ISOs',
17 }
18
19 package { 'draklive': }
20
21 sudo::sudoers_config { 'draklive':
22 content => template('draklive/sudoers.draklive')
23 }
24
25 file { $var_data:
26 ensure => directory,
27 owner => $login,
28 group => $login,
29 mode => '0755',
30 }
31
32 file { '/var/lib/draklive':
33 ensure => symlink,
34 target => $var_data,
35 }
36
37 subversion::snapshot { $config:
38 source => "svn://svn.$::domain/soft/images-config/draklive/trunk/",
39 }
40
41 cron { 'build live images':
42 command => "$config/tools/build_live.sh",
43 user => $login,
44 hour => '4',
45 minute => '30',
46 }
47
48 file { '/usr/local/bin/clean-live.sh':
49 mode => '0755',
50 source => 'puppet:///modules/draklive/clean-live.sh',
51 }
52
53 cron { 'clean live build data':
54 command => '/usr/local/bin/clean-live.sh',
55 hour => '4',
56 minute => '20',
57 }
58 }

  ViewVC Help
Powered by ViewVC 1.1.28