aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/releases.pp
blob: 26d14bcf822a33ed299e40837af2a8fa80b04b34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class websites::releases {
    include websites::base
    $vhost = "releases.$::domain"
    $vhostdir = "$websites::base::webdatadir/$vhost"
    $svn_location = "svn://svn.$::domain/svn/web/releases/"

    apache::vhost_base { $vhost:
        location => $vhostdir,
        options  => [ 'FollowSymLinks' ],
    }

    apache::vhost_base { "ssl_$vhost":
        vhost    => $vhost,
        use_ssl  => true,
        location => $vhostdir,
        options  => [ 'FollowSymLinks' ],
    }

    subversion::snapshot { $vhostdir:
        source => $svn_location,
    }
}