/[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 1356 - (show annotations) (download)
Tue Mar 22 17:43:44 2011 UTC (13 years, 1 month ago) by misc
File size: 741 byte(s)
use the new type for user and database declaration ( will be used later for pg access list )
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 }

  ViewVC Help
Powered by ViewVC 1.1.30