/[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 2568 - (show annotations) (download)
Sat Mar 17 11:40:30 2012 UTC (8 years ago) by misc
File size: 1648 byte(s)
small cleanup on draklive module
1 class draklive {
2 class variable {
3 $draklive_login = 'draklive'
4 $draklive_home = '/home/draklive'
5 $draklive_config = "$draklive_home/live-config"
6 $draklive_var_data = "$draklive_home/var-data"
7 $isomakers_group = 'mga-iso_makers'
8 }
9
10 class base inherits variable {
11 include sudo
12
13 group { $draklive_login: }
14
15 user { $draklive_login:
16 home => $draklive_home,
17 managehome => true,
18 comment => 'User for creating live ISOs',
19 }
20
21 package { 'draklive': }
22
23 sudo::sudoers_config { "draklive":
24 content => template("draklive/sudoers.draklive")
25 }
26
27 file { $draklive_var_data:
28 ensure => directory,
29 owner => $draklive_login,
30 group => $draklive_login,
31 mode => 755,
32 }
33
34 file { "/var/lib/draklive":
35 ensure => symlink,
36 target => $draklive_var_data,
37 }
38
39 subversion::snapshot { $draklive_config:
40 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
41 }
42
43 cron { "build live images":
44 command => "$draklive_config/tools/build_live.sh",
45 user => $draklive_login,
46 hour => "4",
47 minute => "30",
48 }
49
50 file { "/usr/local/bin/clean-live.sh":
51 ensure => present,
52 owner => root,
53 group => root,
54 mode => 755,
55 source => "puppet:///modules/draklive/clean-live.sh",
56 }
57
58 cron { "clean live build data":
59 command => "/usr/local/bin/clean-live.sh",
60 hour => "4",
61 minute => "20",
62 }
63 }
64 }

  ViewVC Help
Powered by ViewVC 1.1.26