1 |
class bcd::web { |
class bcd::web { |
2 |
include bcd::base |
include bcd::base |
3 |
# TODO simplify this |
$location = "$bcd::home/public_html" |
|
$bcd_home = $bcd::home |
|
4 |
|
|
5 |
apache::vhost_base { "bcd.$::domain": |
apache::vhost_base { "bcd.$::domain": |
6 |
location => "$bcd_home/public_html", |
location => $location, |
7 |
content => template('bcd/vhost_bcd.conf'), |
content => template('bcd/vhost_bcd.conf'), |
8 |
} |
} |
9 |
|
|
10 |
# not sure if that's useful, since the file is public and trivially |
# not sure if that's useful, since the file is public and trivially |
11 |
# bruteforced |
# bruteforced |
12 |
file { "$bcd_home/htpasswd": |
file { "$bcd::home/htpasswd": |
13 |
content => template('bcd/htpasswd') |
content => template('bcd/htpasswd') |
14 |
} |
} |
15 |
} |
} |