Modified: puppet/modules/mga-mirrors/manifests/init.pp
===================================================================
--- puppet/modules/mga-mirrors/manifests/init.pp 2010-11-04 18:57:15 UTC (rev 109)
+++ puppet/modules/mga-mirrors/manifests/init.pp 2010-11-04 20:34:59 UTC (rev 110)
@@ -15,5 +15,16 @@
mode => 644,
notify => Service['apache'],
content => template("mga-mirrors/mirrors_vhost.conf")
- }
+ }
+
+ $password = extlookup("mga_mirror_password")
+
+ file { "mga-mirrors.ini":
+ path => "/etc/mga-mirrors.ini",
+ ensure => "present",
+ owner => apache,
+ group => apache,
+ mode => 600,
+ content => template("mga-mirrors/mga-mirrors.ini")
+ }
}
Added: puppet/modules/mga-mirrors/templates/mga-mirrors.ini
===================================================================
--- puppet/modules/mga-mirrors/templates/mga-mirrors.ini (rev 0)
+++ puppet/modules/mga-mirrors/templates/mga-mirrors.ini 2010-11-04 20:34:59 UTC (rev 110)
@@ -0,0 +1,4 @@
+[db]
+pgconn=host=pgsql;dbname=mirrors
+user=mirrors
+password=<%= password %>