aboutsummaryrefslogtreecommitdiffstats
path: root/modules/catdap/manifests/snapshot.pp
blob: 4dc7796fdfd4492136112643689f49cc237685f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
define catdap::snapshot($location, $svn_location) {
    file { "$location/catdap_local.yml":
        group   => apache,
        mode    => '0640',
        content => template('catdap/catdap_local.yml'),
        require => Subversion::Snapshot[$location],
    }

    subversion::snapshot { $location:
        source => $svn_location
    }

    apache::vhost_catalyst_app { $name:
        script   => "$location/script/catdap_fastcgi.pl",
        location => $location,
        use_ssl  => true,
    }

    apache::vhost_redirect_ssl { $name: }
}