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

1 class draklive {
2 class variable {
3 $draklive_login = 'draklive'
4 $draklive_home = '/home/draklive'
5 $live_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 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 file { $draklive_var_data:
27 ensure => directory,
28 owner => $draklive_login,
29 group => $draklive_login,
30 mode => 755,
31 }
32
33 file { "/var/lib/draklive":
34 ensure => symlink,
35 target => $draklive_var_data,
36 }
37
38 subversion::snapshot { $live_config:
39 source => "svn://svn.$domain/soft/images-config/draklive/trunk/",
40 }
41 }
42 }

  ViewVC Help
Powered by ViewVC 1.1.26