/[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 2554 - (show annotations) (download)
Sat Mar 17 10:34:24 2012 UTC (8 years, 4 months ago) by misc
File size: 1644 byte(s)
use a regular user for draklive, not a special one with ssh key management builtin
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 homedir => $draklive_home,
17 comment => 'User for creating live ISOs',
18 }
19
20 package { draklive:
21 ensure => 'installed',
22 }
23
24 sudo::sudoers_config { "draklive":
25 content => template("draklive/sudoers.draklive")
26 }
27
28 file { $draklive_var_data:
29 ensure => directory,
30 owner => $draklive_login,
31 group => $draklive_login,
32 mode => 755,
33 }
34
35 file { "/var/lib/draklive":
36 ensure => symlink,
37 target => $draklive_var_data,
38 }
39
40 subversion::snapshot { $draklive_config:
41 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
42 }
43
44 cron { "build live images":
45 command => "$draklive_config/tools/build_live.sh",
46 user => $draklive_login,
47 hour => "4",
48 minute => "30",
49 }
50
51 file { "/usr/local/bin/clean-live.sh":
52 ensure => present,
53 owner => root,
54 group => root,
55 mode => 755,
56 source => "puppet:///modules/draklive/clean-live.sh",
57 }
58
59 cron { "clean live build data":
60 command => "/usr/local/bin/clean-live.sh",
61 hour => "4",
62 minute => "20",
63 }
64 }
65 }

  ViewVC Help
Powered by ViewVC 1.1.28