aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/nav.pp
blob: d0a6e295293c92a2581994ecc3a8bf5d90b1d97a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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],
    }
}