From 436e07fd8249dbc50712d8492308a29adafc3499 Mon Sep 17 00:00:00 2001 From: Nicolas Vigier Date: Tue, 15 May 2012 15:30:51 +0000 Subject: add websites::doc class --- deployment/websites/manifests/doc.pp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 deployment/websites/manifests/doc.pp (limited to 'deployment/websites/manifests/doc.pp') diff --git a/deployment/websites/manifests/doc.pp b/deployment/websites/manifests/doc.pp new file mode 100644 index 00000000..63ba9d45 --- /dev/null +++ b/deployment/websites/manifests/doc.pp @@ -0,0 +1,20 @@ +class websites::doc { + include websites::base + $vhost = "doc.$::domain" + $vhostdir = "$websites::base::webdatadir/$vhost" + $svn_location = "svn://svn.$::domain/svn/web/doc/" + + apache::vhost::base { $vhost: + location => $vhostdir, + } + + apache::vhost::base { "ssl_$vhost": + vhost => $vhost, + use_ssl => true, + location => $vhostdir, + } + + subversion::snapshot { $vhostdir: + source => $svn_location, + } +} -- cgit v1.2.1