aboutsummaryrefslogtreecommitdiffstats
path: root/deployment/websites/manifests/releases.pp
blob: 4cb88d6774c785670215afc607167e98d266e105 (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 {
    class releases inherits base {
        $vhostdir = "$webdatadir/releases.$domain"
        $svn_location = "svn://svn.$domain/svn/web/releases/"

        apache::vhost_base { "releases.$domain":
            location => $vhostdir,
            options => [ "FollowSymLinks" ],
	    }

    	apache::vhost_base { "ssl_releases.$domain":
            vhost => "releases.$domain",
            use_ssl => true,
            location => $vhostdir,
            options => [ "FollowSymLinks" ],
        }

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