[Mageia-sysadm] [222] - do not store password in clear in the svn

root at mageia.org root at mageia.org
Wed Nov 10 01:57:44 CET 2010


Revision: 222
Author:   misc
Date:     2010-11-10 01:57:44 +0100 (Wed, 10 Nov 2010)
Log Message:
-----------
- do not store password in clear in the svn

Modified Paths:
--------------
    puppet/modules/bugzilla/manifests/init.pp
    puppet/modules/bugzilla/templates/localconfig

Modified: puppet/modules/bugzilla/manifests/init.pp
===================================================================
--- puppet/modules/bugzilla/manifests/init.pp	2010-11-10 00:54:29 UTC (rev 221)
+++ puppet/modules/bugzilla/manifests/init.pp	2010-11-10 00:57:44 UTC (rev 222)
@@ -4,6 +4,7 @@
         ensure => installed;
     }
 
+    $password = extlookup("bugzilla_password")
     file { '/etc/bugzilla/localconfig':
         ensure => present,
         owner => root,

Modified: puppet/modules/bugzilla/templates/localconfig
===================================================================
--- puppet/modules/bugzilla/templates/localconfig	2010-11-10 00:54:29 UTC (rev 221)
+++ puppet/modules/bugzilla/templates/localconfig	2010-11-10 00:57:44 UTC (rev 222)
@@ -56,7 +56,7 @@
 # If you use apostrophe (') or a backslash (\) in your password, you'll
 # need to escape it by preceding it with a '\' character. (\') or (\)
 # (Far simpler just not to use those characters.)
-$db_pass = 'bugs';
+$db_pass = '<%= password %>';
 
 # Sometimes the database server is running on a non-standard port. If that's
 # the case for your database server, set this to the port number that your
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101110/6e7596c3/attachment-0001.html>


More information about the Mageia-sysadm mailing list