/[adm]/puppet/modules/mga-mirrors/manifests/init.pp
ViewVC logotype

Contents of /puppet/modules/mga-mirrors/manifests/init.pp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1911 - (show annotations) (download)
Mon Aug 1 14:14:19 2011 UTC (12 years, 7 months ago) by boklm
File size: 958 byte(s)
update mga_mirrors cron to send emails to root instead of apache user
1 class mga-mirrors {
2
3 $vhost = "mirrors.$domain"
4
5 package { 'mga-mirrors':
6 ensure => installed
7 }
8
9 apache::vhost_catalyst_app { $vhost:
10 script => "/usr/bin/mga_mirrors_fastcgi.pl",
11 require => Package['mga-mirrors'],
12 }
13
14 $pgsql_password = extlookup("mga_mirror_pgsql",'x')
15
16 postgresql::remote_db_and_user { 'mirrors':
17 password => $pgsql_password,
18 description => "Mirrors database",
19 }
20
21 file { "mga-mirrors.ini":
22 path => "/etc/mga-mirrors.ini",
23 ensure => "present",
24 owner => root,
25 group => apache,
26 mode => 640,
27 content => template("mga-mirrors/mga-mirrors.ini"),
28 require => Package['mga-mirrors']
29 }
30
31 file { "/etc/cron.d/mga_mirrors":
32 ensure => "present",
33 owner => root,
34 group => root,
35 content => template("mga-mirrors/cron-mga_mirrors"),
36 require => Package['mga-mirrors']
37 }
38 }

  ViewVC Help
Powered by ViewVC 1.1.30