36 |
} |
} |
37 |
} |
} |
38 |
|
|
39 |
|
class hugs inherits base { |
40 |
|
$vhostdir = "$webdatadir/hugs.$domain" |
41 |
|
$svn_location = "svn://svn.$domain/svn/web/hugs/public/" |
42 |
|
apache::vhost_base { "hugs.$domain": |
43 |
|
location => $vhostdir, |
44 |
|
} |
45 |
|
|
46 |
|
file { $vhostdir: |
47 |
|
ensure => directory, |
48 |
|
mode => 755, |
49 |
|
} |
50 |
|
|
51 |
|
subversion::snapshot { "$vhostdir": |
52 |
|
source => $svn_location |
53 |
|
} |
54 |
|
} |
55 |
|
|
56 |
class svn { |
class svn { |
57 |
apache::vhost_redirect { "svn.$domain": |
apache::vhost_redirect { "svn.$domain": |
58 |
url => "http://svnweb.$domain/", |
url => "http://svnweb.$domain/", |