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