/[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 1652 - (hide annotations) (download)
Sat May 28 12:43:39 2011 UTC (9 years, 1 month ago) by blino
File size: 1197 byte(s)
include cron

1 blino 1314 class draklive {
2     class variable {
3 boklm 1315 $draklive_login = 'draklive'
4 blino 1314 $draklive_home = '/home/draklive'
5 blino 1650 $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 blino 1652 include cron
13 blino 1314
14     buildsystem::sshuser { $draklive_login:
15     homedir => $draklive_home,
16     comment => "User for creating live ISOs",
17     }
18    
19     package { draklive:
20     ensure => 'installed',
21     }
22    
23     sudo::sudoers_config { "draklive":
24     content => template("draklive/sudoers.draklive")
25     }
26    
27 blino 1649 file { $draklive_var_data:
28 blino 1314 ensure => directory,
29     owner => $draklive_login,
30     group => $draklive_login,
31     mode => 755,
32     }
33    
34 blino 1324 file { "/var/lib/draklive":
35     ensure => symlink,
36 blino 1649 target => $draklive_var_data,
37 blino 1324 }
38    
39 blino 1650 subversion::snapshot { $draklive_config:
40 blino 1647 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
41     }
42 blino 1651
43     cron { "build live images":
44     command => "$draklive_config/tools/build_live.sh",
45     hour => "14",
46     minute => 45",
47     }
48 blino 1314 }
49     }

  ViewVC Help
Powered by ViewVC 1.1.28