aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/doc.pp
blob: 69b2a3a447bc8c3dff827b9e890b50fee50562e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
class websites::doc {
    include websites::base
    $vhost = "doc.$::domain"
    $vhostdir = "$websites::base::webdatadir/${vhost}"
    $git_location = "git://git.$::domain/web/doc"

    apache::vhost::base { $vhost:
        location => $vhostdir,
    }

    apache::vhost::base { "ssl_${vhost}":
        vhost    => $vhost,
        use_ssl  => true,
        location => $vhostdir,
    }

    git::snapshot { $vhostdir:
        source => $git_location,
    }
}