24 |
class www inherits base { |
class www inherits base { |
25 |
include apache::mod_php |
include apache::mod_php |
26 |
include apache::mod_geoip |
include apache::mod_geoip |
27 |
|
$vhost = "www-test.$domain" |
28 |
$vhostdir = "$webdatadir/www.$domain" |
$vhostdir = "$webdatadir/www.$domain" |
29 |
$svn_location = "svn://svn.$domain/svn/web/www/trunk" |
$svn_location = "svn://svn.$domain/svn/web/www/trunk" |
30 |
|
|
32 |
source => $svn_location |
source => $svn_location |
33 |
} |
} |
34 |
|
|
35 |
apache::vhost_base { "www-test.$domain": |
apache::vhost_base { "$vhost": |
36 |
|
content => template('websites/vhost_www.conf'), |
37 |
|
location => $vhostdir, |
38 |
|
options => ['FollowSymLinks'], |
39 |
|
} |
40 |
|
apache::vhost_base { "ssl_$vhost": |
41 |
|
use_ssl => true, |
42 |
|
vhost => $vhost, |
43 |
content => template('websites/vhost_www.conf'), |
content => template('websites/vhost_www.conf'), |
44 |
location => $vhostdir, |
location => $vhostdir, |
45 |
options => ['FollowSymLinks'], |
options => ['FollowSymLinks'], |