From ad0e70339ca79d98cb2cec02366b16c88b45787e Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Tue, 1 Feb 2011 12:44:55 +0000 Subject: - add a vhost_redirect type --- modules/apache/manifests/init.pp | 7 +++++++ modules/apache/templates/vhost_redirect.conf | 2 ++ 2 files changed, 9 insertions(+) create mode 100644 modules/apache/templates/vhost_redirect.conf (limited to 'modules') 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 %> + -- cgit v1.2.1