5 |
include apache::mod_fcgid |
include apache::mod_fcgid |
6 |
|
|
7 |
$catdap_location = "/var/www/identity" |
$catdap_location = "/var/www/identity" |
8 |
|
$catdap_vhost = "identity.$domain" |
9 |
|
|
10 |
# TODO switch to a proper rpm packaging |
# TODO switch to a proper rpm packaging |
11 |
$rpm_requirement = ['perl-Catalyst-Runtime', |
$rpm_requirement = ['perl-Catalyst-Runtime', |
20 |
} |
} |
21 |
|
|
22 |
subversion::snapshot { $catdap_location: |
subversion::snapshot { $catdap_location: |
23 |
source => "svn+ssh://svn.mageia.org/srv/mx2-dd0/svn/soft/identity/CatDap/branches/live" |
source => "svn://svn.mageia.org/soft/identity/CatDap/branches/live" |
24 |
} |
} |
25 |
|
|
26 |
# add a catdap config file |
# add a catdap config file |
28 |
ensure => present, |
ensure => present, |
29 |
owner => apache, |
owner => apache, |
30 |
mode => 600, |
mode => 600, |
31 |
content => template("catdap/catdap_local.yml") |
content => template("catdap/catdap_local.yml"), |
32 |
|
require => Subversion::Snapshot[$catdap_location] |
33 |
} |
} |
34 |
|
|
35 |
|
$catdap_password = extlookup('catdap_password') |
36 |
# add a apache vhost |
# add a apache vhost |
37 |
file { "identity.$domain.conf": |
file { "$catdap_vhost.conf": |
38 |
path => "/etc/httpd/conf/vhosts.d/$name", |
path => "/etc/httpd/conf/vhosts.d/$catdap_vhost.conf", |
39 |
ensure => "present", |
ensure => "present", |
40 |
owner => root, |
owner => root, |
41 |
group => root, |
group => root, |