/[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 1649 - (hide annotations) (download)
Sat May 28 12:15:23 2011 UTC (9 years, 4 months ago) by blino
File size: 1012 byte(s)
factorize var-data location

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

  ViewVC Help
Powered by ViewVC 1.1.28