/[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 1703 - (hide annotations) (download)
Mon Jun 6 21:24:12 2011 UTC (9 years, 1 month ago) by blino
File size: 1616 byte(s)
add script and cron to clean live build data
1 blino 1314 class draklive {
2     class variable {
3 boklm 1315 $draklive_login = 'draklive'
4 blino 1314 $draklive_home = '/home/draklive'
5 blino 1655 $draklive_config = "$draklive_home/live-config"
6 blino 1649 $draklive_var_data = "$draklive_home/var-data"
7 blino 1314 $isomakers_group = 'mga-iso_makers'
8     }
9    
10     class base inherits variable {
11     include sudo
12    
13     buildsystem::sshuser { $draklive_login:
14     homedir => $draklive_home,
15     comment => "User for creating live ISOs",
16     }
17    
18     package { draklive:
19     ensure => 'installed',
20     }
21    
22     sudo::sudoers_config { "draklive":
23     content => template("draklive/sudoers.draklive")
24     }
25    
26 blino 1649 file { $draklive_var_data:
27 blino 1314 ensure => directory,
28     owner => $draklive_login,
29     group => $draklive_login,
30     mode => 755,
31     }
32    
33 blino 1324 file { "/var/lib/draklive":
34     ensure => symlink,
35 blino 1649 target => $draklive_var_data,
36 blino 1324 }
37    
38 blino 1650 subversion::snapshot { $draklive_config:
39 blino 1647 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
40     }
41 blino 1651
42     cron { "build live images":
43     command => "$draklive_config/tools/build_live.sh",
44 blino 1654 user => $draklive_login,
45 blino 1656 hour => "4",
46     minute => "30",
47 blino 1651 }
48 blino 1703
49     file { "/usr/local/bin/clean-live.sh":
50     ensure => present,
51     owner => root,
52     group => root,
53     mode => 755,
54     source => "puppet:///modules/draklive/clean-live.sh",
55     }
56    
57     cron { "clean live build data":
58     command => "/usr/local/bin/clean-live.sh",
59     hour => "4",
60     minute => "20",
61     }
62 blino 1314 }
63     }

  ViewVC Help
Powered by ViewVC 1.1.28