1 |
class apache { |
2 |
define vhost_catalyst_app($script, $location = '', $process = 4, $use_ssl = false, $vhost = false) { |
3 |
|
4 |
include apache::mod::fastcgi |
5 |
apache::vhost::base { $name: |
6 |
vhost => $vhost, |
7 |
use_ssl => $use_ssl, |
8 |
content => template("apache/vhost_catalyst_app.conf"), |
9 |
} |
10 |
} |
11 |
|
12 |
define vhost_simple($location) { |
13 |
include apache::base |
14 |
apache::vhost::base { $name: |
15 |
location => $location, |
16 |
} |
17 |
} |
18 |
|
19 |
define vhost_redirect($url, |
20 |
$vhost = false, |
21 |
$use_ssl = false) { |
22 |
include apache::base |
23 |
apache::vhost::base { $name: |
24 |
use_ssl => $use_ssl, |
25 |
vhost => $vhost, |
26 |
content => template("apache/vhost_redirect.conf"), |
27 |
} |
28 |
} |
29 |
|
30 |
} |