summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..58adab1
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,21 @@
+# Using recipe from
+# from http://reductivelabs.com/trac/puppet/wiki/Recipes/MySQLStoredConfiguration
+
+class mysql {
+ package { "mysql-client":
+ ensure => installed,
+ }
+}
+
+class mysql::server inherits mysql {
+ package { "mysql-server":
+ ensure => installed,
+ }
+ service { "mysql":
+ ensure => running,
+ enable => true,
+ hasrestart => true,
+ hasstatus => true,
+ require => Package["mysql-server"],
+ }
+}