[Mageia-sysadm] [773] add various comment on what should be improved later

root at mageia.org root at mageia.org
Thu Jan 13 19:12:22 CET 2011


Revision: 773
Author:   misc
Date:     2011-01-13 19:12:22 +0100 (Thu, 13 Jan 2011)
Log Message:
-----------
add various comment on what should be improved later

Modified Paths:
--------------
    puppet/modules/postgresql/manifests/init.pp

Modified: puppet/modules/postgresql/manifests/init.pp
===================================================================
--- puppet/modules/postgresql/manifests/init.pp	2011-01-12 22:58:33 UTC (rev 772)
+++ puppet/modules/postgresql/manifests/init.pp	2011-01-13 18:12:22 UTC (rev 773)
@@ -57,6 +57,9 @@
             require => Package["postgresql-server"],
         }
         
+        # TODO use augeas to manage this file once augeas 0.7.4 is installed
+        # on our server, as this would allow use to autodeclare database in it without
+        # much trouble
         file { 'pg_hba.conf':
             path => "$pgsql_data/pg_hba.conf",
             ensure => present,
@@ -77,6 +80,8 @@
             require => Package["postgresql-server"],
         }
 
+        # TODO add a system of tag so we can declare database on more than one
+        # server 
         Postgresql::User <<| |>>
         Postgresql::Database <<| |>>
     }
@@ -89,7 +94,9 @@
             unless => "psql -A -t -U postgres -l | grep '^$name|'",
         }
     }
-
+    
+    # TODO convert to a regular type, so we can later change password without erasing the 
+    # current user
     define user($password) {
         $sql = "CREATE ROLE $name ENCRYPTED PASSWORD '\$pass' NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;"
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20110113/713890f8/attachment.html>


More information about the Mageia-sysadm mailing list