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

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

  ViewVC Help
Powered by ViewVC 1.1.28