From c2b502c38aab206f12e667400f3b99232509d13f Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Thu, 19 May 2011 10:14:28 +0000 Subject: redirect http to https on mirrors.mageia.org --- modules/mga-mirrors/manifests/init.pp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'modules/mga-mirrors/manifests') diff --git a/modules/mga-mirrors/manifests/init.pp b/modules/mga-mirrors/manifests/init.pp index 354df033..714cf463 100644 --- a/modules/mga-mirrors/manifests/init.pp +++ b/modules/mga-mirrors/manifests/init.pp @@ -9,15 +9,11 @@ class mga-mirrors { apache::vhost_catalyst_app { $vhost: script => "/usr/bin/mga_mirrors_fastcgi.pl", require => Package['mga-mirrors'] - } - - apache::vhost_catalyst_app { "ssl_$vhost": - vhost => $vhost, use_ssl => true, - script => "/usr/bin/mga_mirrors_fastcgi.pl", - require => Package['mga-mirrors'] } + apache::vhost_redirect_ssl { $vhost: } + $pgsql_password = extlookup("mga_mirror_pgsql",'x') postgresql::remote_db_and_user { 'mirrors': -- cgit v1.2.1