1 |
class websites { |
2 |
class releases inherits base { |
3 |
$vhostdir = "$webdatadir/releases.$domain" |
4 |
$svn_location = "svn://svn.$domain/svn/web/releases/" |
5 |
|
6 |
apache::vhost_base { "releases.$domain": |
7 |
location => $vhostdir, |
8 |
options => [ "FollowSymLinks" ], |
9 |
} |
10 |
|
11 |
apache::vhost_base { "ssl_releases.$domain": |
12 |
vhost => "releases.$domain", |
13 |
use_ssl => true, |
14 |
location => $vhostdir, |
15 |
options => [ "FollowSymLinks" ], |
16 |
} |
17 |
|
18 |
subversion::snapshot { "$vhostdir": |
19 |
source => $svn_location, |
20 |
} |
21 |
} |
22 |
} |