aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/releases.pp
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/websites/manifests/releases.pp')
-rw-r--r--deployment/websites/manifests/releases.pp22
1 files changed, 22 insertions, 0 deletions
diff --git a/deployment/websites/manifests/releases.pp b/deployment/websites/manifests/releases.pp
new file mode 100644
index 00000000..2b25c8ec
--- /dev/null
+++ b/deployment/websites/manifests/releases.pp
@@ -0,0 +1,22 @@
+class websites::releases {
+ include websites::base
+ $vhost = "releases.${::domain}"
+ $vhostdir = "${websites::base::webdatadir}/${vhost}"
+ $git_location = "git://git.${::domain}/web/releases"
+
+ apache::vhost::base { $vhost:
+ location => $vhostdir,
+ options => [ 'FollowSymLinks' ],
+ }
+
+ apache::vhost::base { "ssl_${vhost}":
+ vhost => $vhost,
+ use_ssl => true,
+ location => $vhostdir,
+ options => [ 'FollowSymLinks' ],
+ }
+
+ git::snapshot { $vhostdir:
+ source => $git_location,
+ }
+}