diff options
Diffstat (limited to 'modules/sympa')
-rw-r--r-- | modules/sympa/manifests/init.pp | 11 | ||||
-rw-r--r-- | modules/sympa/templates/vhost_ml.conf | 5 |
2 files changed, 13 insertions, 3 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp index 8ad97342..3e8dbe8f 100644 --- a/modules/sympa/manifests/init.pp +++ b/modules/sympa/manifests/init.pp @@ -46,13 +46,20 @@ class sympa { include apache::mod_fcgid apache::webapp_other{"sympa": - webapp_file => "sympa/webapp_sympa.conf", + webapp_file => "sympa/webapp_sympa.conf", } - + + apache::vhost_redirect_ssl { "ml.$domain": } + apache::vhost_other_app { "ml.$domain": vhost_file => "sympa/vhost_ml.conf", } + + openssl::self_signed_cert{ "ml.$domain": + directory => "/etc/ssl/apache/" + } + @@postgresql::database { 'sympa': description => "Sympa database", user => "sympa", diff --git a/modules/sympa/templates/vhost_ml.conf b/modules/sympa/templates/vhost_ml.conf index 1f3b17f7..d8208625 100644 --- a/modules/sympa/templates/vhost_ml.conf +++ b/modules/sympa/templates/vhost_ml.conf @@ -1,5 +1,8 @@ -<VirtualHost *:80> +<VirtualHost *:443> ServerName ml.<%= domain %> + SSLEngine on + SSLCertificateFile /etc/ssl/apache/ml.<%= domain %>.pem + SSLCertificateKeyFile /etc/ssl/apache/ml.<%= domain %>.pem <%- path_cgi_directory = lib_dir + "/sympa/cgi" -%> |