aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mysql/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2010-12-09 12:34:34 +0000
committerMichael Scherer <misc@mageia.org>2010-12-09 12:34:34 +0000
commitd7db763b6c77c1b31d4a675a83cada765bc0fcd5 (patch)
treee7802764d70329c419437c7a0c34248940372062 /modules/mysql/manifests
parent7eb2f744a9078db20acb38fcd7a2ace292991350 (diff)
downloadpuppet-d7db763b6c77c1b31d4a675a83cada765bc0fcd5.tar
puppet-d7db763b6c77c1b31d4a675a83cada765bc0fcd5.tar.gz
puppet-d7db763b6c77c1b31d4a675a83cada765bc0fcd5.tar.bz2
puppet-d7db763b6c77c1b31d4a675a83cada765bc0fcd5.tar.xz
puppet-d7db763b6c77c1b31d4a675a83cada765bc0fcd5.zip
- readd a better mysql module
Diffstat (limited to 'modules/mysql/manifests')
-rw-r--r--modules/mysql/manifests/init.pp28
1 files changed, 28 insertions, 0 deletions
diff --git a/modules/mysql/manifests/init.pp b/modules/mysql/manifests/init.pp
new file mode 100644
index 00000000..84562baa
--- /dev/null
+++ b/modules/mysql/manifests/init.pp
@@ -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) {
+#
+# }
+}