diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/mysql/manifests/init.pp | 28 |
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) { +# +# } +} |