aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/nav.pp
diff options
context:
space:
mode:
Diffstat (limited to 'deployment/websites/manifests/nav.pp')
-rw-r--r--deployment/websites/manifests/nav.pp27
1 files changed, 27 insertions, 0 deletions
diff --git a/deployment/websites/manifests/nav.pp b/deployment/websites/manifests/nav.pp
new file mode 100644
index 00000000..84323c26
--- /dev/null
+++ b/deployment/websites/manifests/nav.pp
@@ -0,0 +1,27 @@
+class websites::nav {
+ include websites::base
+ $vhost = "nav.${::domain}"
+ $vhostdir = "${websites::base::webdatadir}/${vhost}"
+ $git_location = "git://git.${::domain}/web/nav"
+
+ apache::vhost::base { $vhost:
+ location => $vhostdir,
+ }
+
+ apache::vhost::base { "ssl_${vhost}":
+ vhost => $vhost,
+ use_ssl => true,
+ location => $vhostdir,
+ }
+
+ git::snapshot { $vhostdir:
+ source => $git_location,
+ }
+
+ file { "${vhostdir}/var/tmp/cache":
+ ensure => directory,
+ mode => '0660',
+ group => $apache::var::apache_group,
+ require => Git::Snapshot[$vhostdir],
+ }
+}