/[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 2556 - (show annotations) (download)
Sat Mar 17 10:40:08 2012 UTC (8 years, 2 months ago) by misc
File size: 1682 byte(s)
fix user creation

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 ensure => 'installed',
23 }
24
25 sudo::sudoers_config { "draklive":
26 content => template("draklive/sudoers.draklive")
27 }
28
29 file { $draklive_var_data:
30 ensure => directory,
31 owner => $draklive_login,
32 group => $draklive_login,
33 mode => 755,
34 }
35
36 file { "/var/lib/draklive":
37 ensure => symlink,
38 target => $draklive_var_data,
39 }
40
41 subversion::snapshot { $draklive_config:
42 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
43 }
44
45 cron { "build live images":
46 command => "$draklive_config/tools/build_live.sh",
47 user => $draklive_login,
48 hour => "4",
49 minute => "30",
50 }
51
52 file { "/usr/local/bin/clean-live.sh":
53 ensure => present,
54 owner => root,
55 group => root,
56 mode => 755,
57 source => "puppet:///modules/draklive/clean-live.sh",
58 }
59
60 cron { "clean live build data":
61 command => "/usr/local/bin/clean-live.sh",
62 hour => "4",
63 minute => "20",
64 }
65 }
66 }

  ViewVC Help
Powered by ViewVC 1.1.28