blob: 40779d4de653f13f3d01e82ac338c248c31cb6ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
class apache {
define vhost_simple($location) {
include apache::base
apache::vhost::base { $name:
location => $location,
}
apache::vhost::base { "ssl_${name}":
vhost => $name,
use_ssl => true,
location => $location,
}
}
define vhost_redirect($url,
$vhost = false,
$use_ssl = false) {
include apache::base
apache::vhost::base { $name:
use_ssl => $use_ssl,
vhost => $vhost,
content => template("apache/vhost_redirect.conf"),
}
}
}
|