1 |
misc |
2558 |
class bcd::web { |
2 |
|
|
include bcd::base |
3 |
|
|
$bcd_home = $bcd::variable::bcd_home |
4 |
|
|
|
5 |
|
|
apache::vhost_base { "bcd.$::domain": |
6 |
|
|
location => "$bcd_home/public_html", |
7 |
|
|
content => template('bcd/vhost_bcd.conf'), |
8 |
|
|
} |
9 |
|
|
|
10 |
|
|
# TODO should be merged with main file |
11 |
|
|
file { "$bcd_home/public_html/.htaccess": |
12 |
|
|
content => template('bcd/.htaccess') |
13 |
|
|
} |
14 |
|
|
|
15 |
|
|
# not sure if that's useful, since the file is public and trivially |
16 |
|
|
# bruteforced |
17 |
|
|
file { "$bcd_home/public_html/.htpasswd": |
18 |
|
|
content => template('bcd/.htpasswd') |
19 |
|
|
} |
20 |
|
|
} |