1 |
define catdap::snapshot($location, $git_location, $git_branch) { |
2 |
file { "$location/catdap_local.yml": |
3 |
group => apache, |
4 |
mode => '0640', |
5 |
content => template('catdap/catdap_local.yml'), |
6 |
require => Subversion::Snapshot[$location], |
7 |
} |
8 |
|
9 |
git::snapshot { $location: |
10 |
source => $git_location, |
11 |
branch => $git_branch, |
12 |
} |
13 |
|
14 |
apache::vhost::catalyst_app { $name: |
15 |
script => "$location/script/catdap_fastcgi.pl", |
16 |
location => $location, |
17 |
use_ssl => true, |
18 |
} |
19 |
|
20 |
apache::vhost::redirect_ssl { $name: } |
21 |
} |