summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
authorandreas <andreas@immerda.ch>2008-02-01 20:02:34 +0000
committerandreas <andreas@immerda.ch>2008-02-01 20:02:34 +0000
commit1fba90e17cda01fe2f30937f4cd889eee2870f22 (patch)
tree99de16ca34f24431e38078631858e32f19c3203b /manifests/init.pp
shorewall rename, mysql plugin from git, pg modul neu
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp30
1 files changed, 30 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..1244388
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,30 @@
+# mysql.pp
+# Copyright (C) 2007 David Schmitt <david@schmitt.edv-bus.at>
+# See LICENSE for the full license granted to you.
+
+class mysql::server {
+
+ package { "mysql":
+ ensure => present,
+ category => $operatingsystem ? {
+ gentoo => 'dev-db',
+ default => '',
+ }
+ }
+
+ munin::plugin {
+ [mysql_bytes, mysql_queries, mysql_slowqueries, mysql_threads]:
+ }
+
+ service { mysql:
+ ensure => running,
+ hasstatus => true,
+ require => Package["mysql"],
+ }
+
+ # Collect all databases and users
+ Mysql_database<<||>>
+ Mysql_user<<||>>
+ Mysql_grant<<||>>
+
+}