2 |
|
|
3 |
$vhost = "mirrors.$domain" |
$vhost = "mirrors.$domain" |
4 |
|
|
5 |
package { 'mga-mirrors': |
package { 'mga-mirrors': } |
|
ensure => installed |
|
|
} |
|
6 |
|
|
7 |
apache::vhost_catalyst_app { $vhost: |
apache::vhost_catalyst_app { $vhost: |
8 |
script => "/usr/bin/mga_mirrors_fastcgi.pl", |
script => "/usr/bin/mga_mirrors_fastcgi.pl", |
16 |
description => "Mirrors database", |
description => "Mirrors database", |
17 |
} |
} |
18 |
|
|
19 |
file { "mga-mirrors.ini": |
file { "/etc/mga-mirrors.ini": |
|
path => "/etc/mga-mirrors.ini", |
|
|
ensure => "present", |
|
|
owner => root, |
|
20 |
group => apache, |
group => apache, |
21 |
mode => 640, |
mode => 640, |
22 |
content => template("mga-mirrors/mga-mirrors.ini"), |
content => template("mga-mirrors/mga-mirrors.ini"), |
24 |
} |
} |
25 |
|
|
26 |
file { "/etc/cron.d/mga_mirrors": |
file { "/etc/cron.d/mga_mirrors": |
|
ensure => "present", |
|
|
owner => root, |
|
|
group => root, |
|
27 |
content => template("mga-mirrors/cron-mga_mirrors"), |
content => template("mga-mirrors/cron-mga_mirrors"), |
28 |
require => Package['mga-mirrors'] |
require => Package['mga-mirrors'] |
29 |
} |
} |