[Mageia-sysadm] [567] - readd a better mysql module

root at mageia.org root at mageia.org
Thu Dec 9 13:34:35 CET 2010


Revision: 567
Author:   misc
Date:     2010-12-09 13:34:34 +0100 (Thu, 09 Dec 2010)
Log Message:
-----------
- readd a better mysql module

Added Paths:
-----------
    puppet/modules/mysql/
    puppet/modules/mysql/manifests/
    puppet/modules/mysql/manifests/init.pp

Added: puppet/modules/mysql/manifests/init.pp
===================================================================
--- puppet/modules/mysql/manifests/init.pp	                        (rev 0)
+++ puppet/modules/mysql/manifests/init.pp	2010-12-09 12:34:34 UTC (rev 567)
@@ -0,0 +1,28 @@
+class mysql {
+    class server {
+        package { "mysql":
+            ensure => installed
+        }
+
+        service { "mysql":
+            path => "/etc/init.d/mysqld",
+            ensure => running,
+            hasstatus => true, 
+        }
+        
+#        file { "/etc/my.cnf":
+#            
+#        }
+    }
+    
+    define database() { 
+       exec { "mysqladmin create $name":
+            user => root,
+           # not sure if /dev/null is needed
+           unless => "mysqlshow $name"
+       }
+    }
+#    define user($password) {
+#
+#    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-sysadm/attachments/20101209/33478294/attachment.html>


More information about the Mageia-sysadm mailing list