[Mageia-sysadm] [110] - add the config file in svn

root at mageia.org root at mageia.org
Thu Nov 4 21:34:59 CET 2010


Revision: 110
Author:   misc
Date:     2010-11-04 21:34:59 +0100 (Thu, 04 Nov 2010)
Log Message:
-----------
- add the config file in svn 

Modified Paths:
--------------
    puppet/modules/mga-mirrors/manifests/init.pp

Added Paths:
-----------
    puppet/modules/mga-mirrors/templates/mga-mirrors.ini

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 %>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101104/9416a342/attachment.html>


More information about the Mageia-sysadm mailing list