From d7db763b6c77c1b31d4a675a83cada765bc0fcd5 Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Thu, 9 Dec 2010 12:34:34 +0000 Subject: - readd a better mysql module --- modules/mysql/manifests/init.pp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 modules/mysql/manifests/init.pp (limited to 'modules') 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) { +# +# } +} -- cgit v1.2.1