1 |
colin |
3426 |
define catdap::snapshot($location, $git_location, $git_branch) { |
2 |
misc |
2581 |
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 |
colin |
3426 |
git::snapshot { $location: |
10 |
|
|
source => $git_location, |
11 |
|
|
branch => $git_branch, |
12 |
misc |
2581 |
} |
13 |
|
|
|
14 |
misc |
2707 |
apache::vhost::catalyst_app { $name: |
15 |
misc |
2581 |
script => "$location/script/catdap_fastcgi.pl", |
16 |
|
|
location => $location, |
17 |
|
|
use_ssl => true, |
18 |
|
|
} |
19 |
|
|
|
20 |
misc |
2691 |
apache::vhost::redirect_ssl { $name: } |
21 |
misc |
2581 |
} |