/[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 1703 - (show annotations) (download)
Mon Jun 6 21:24:12 2011 UTC (9 years, 4 months ago) by blino
File size: 1616 byte(s)
add script and cron to clean live build data
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 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 file { $draklive_var_data:
27 ensure => directory,
28 owner => $draklive_login,
29 group => $draklive_login,
30 mode => 755,
31 }
32
33 file { "/var/lib/draklive":
34 ensure => symlink,
35 target => $draklive_var_data,
36 }
37
38 subversion::snapshot { $draklive_config:
39 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
40 }
41
42 cron { "build live images":
43 command => "$draklive_config/tools/build_live.sh",
44 user => $draklive_login,
45 hour => "4",
46 minute => "30",
47 }
48
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 }
63 }

  ViewVC Help
Powered by ViewVC 1.1.28