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

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 include cron
13
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 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 hour => "14",
46 minute => 45",
47 }
48 }
49 }

  ViewVC Help
Powered by ViewVC 1.1.28