summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-02 14:02:50 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-02 14:02:50 -0200
commit6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd (patch)
treeaeda0dd9d2e7208c16fd4f1d304d9f37540445e1 /manifests
downloadpuppet-mysql-6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd.tar.gz
puppet-mysql-6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd.tar.bz2
Initial import
Diffstat (limited to 'manifests')
-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"],
+ }
+}