1 |
class websites { |
class websites::static { |
2 |
class static inherits base { |
include websites::base |
3 |
$vhostdir = "$webdatadir/static.$domain" |
$vhostdir = "$websites::base::webdatadir/static.$::domain" |
4 |
|
|
5 |
apache::vhost_other_app { "static.$domain": |
apache::vhost_other_app { "static.$::domain": |
6 |
vhost_file => 'websites/vhost_static.conf', |
vhost_file => 'websites/vhost_static.conf', |
7 |
} |
} |
8 |
|
|
9 |
file { $vhostdir: |
file { $vhostdir: |
10 |
ensure => directory, |
ensure => directory, |
11 |
} |
} |
12 |
|
|
13 |
subversion::snapshot { "$vhostdir/g": |
subversion::snapshot { "$vhostdir/g": |
14 |
source => "svn://svn.$domain/svn/web/www/trunk/g/", |
source => "svn://svn.$::domain/svn/web/www/trunk/g/", |
|
} |
|
15 |
} |
} |
16 |
} |
} |