From cda6626175deafeeae1f90c4c156b42f6ffaf23b Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 20 Dec 2011 14:14:46 +0000 Subject: add www with ssl --- deployment/websites/manifests/init.pp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'deployment/websites') diff --git a/deployment/websites/manifests/init.pp b/deployment/websites/manifests/init.pp index 15ac5812..34593b1a 100644 --- a/deployment/websites/manifests/init.pp +++ b/deployment/websites/manifests/init.pp @@ -24,6 +24,7 @@ class websites { class www inherits base { include apache::mod_php include apache::mod_geoip + $vhost = "www-test.$domain" $vhostdir = "$webdatadir/www.$domain" $svn_location = "svn://svn.$domain/svn/web/www/trunk" @@ -31,7 +32,14 @@ class websites { source => $svn_location } - apache::vhost_base { "www-test.$domain": + apache::vhost_base { "$vhost": + content => template('websites/vhost_www.conf'), + location => $vhostdir, + options => ['FollowSymLinks'], + } + apache::vhost_base { "ssl_$vhost": + use_ssl => true, + vhost => $vhost, content => template('websites/vhost_www.conf'), location => $vhostdir, options => ['FollowSymLinks'], -- cgit v1.2.1