aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-02-01 12:44:55 +0000
committerMichael Scherer <misc@mageia.org>2011-02-01 12:44:55 +0000
commitad0e70339ca79d98cb2cec02366b16c88b45787e (patch)
tree9c97adadc0631f3f7ec7cc8f8a123df12ea6619c /modules
parent7d7d2a9230e6224ccf4e40f9848483362eed7f02 (diff)
downloadpuppet-ad0e70339ca79d98cb2cec02366b16c88b45787e.tar
puppet-ad0e70339ca79d98cb2cec02366b16c88b45787e.tar.gz
puppet-ad0e70339ca79d98cb2cec02366b16c88b45787e.tar.bz2
puppet-ad0e70339ca79d98cb2cec02366b16c88b45787e.tar.xz
puppet-ad0e70339ca79d98cb2cec02366b16c88b45787e.zip
- add a vhost_redirect type
Diffstat (limited to 'modules')
-rw-r--r--modules/apache/manifests/init.pp7
-rw-r--r--modules/apache/templates/vhost_redirect.conf2
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/apache/manifests/init.pp b/modules/apache/manifests/init.pp
index f070a828..ea34f1fb 100644
--- a/modules/apache/manifests/init.pp
+++ b/modules/apache/manifests/init.pp
@@ -205,6 +205,13 @@ class apache {
}
}
+ define vhost_redirect($url) {
+ include apache::base
+ vhost_base { $name:
+ content => template("apache/vhost_redirect.conf"),
+ }
+ }
+
define vhost_reverse_proxy($url) {
include apache::mod_proxy
vhost_base { $name:
diff --git a/modules/apache/templates/vhost_redirect.conf b/modules/apache/templates/vhost_redirect.conf
new file mode 100644
index 00000000..0f256881
--- /dev/null
+++ b/modules/apache/templates/vhost_redirect.conf
@@ -0,0 +1,2 @@
+Redirect / <%= url %>
+