diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-02 14:02:50 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-02 14:02:50 -0200 |
commit | 6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd (patch) | |
tree | aeda0dd9d2e7208c16fd4f1d304d9f37540445e1 /manifests | |
download | puppet-mysql-6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd.tar.gz puppet-mysql-6dbd3aa79b7fcd3dfa4682d1e5a8ad2f9fc87cbd.tar.bz2 |
Initial import
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 21 |
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"], + } +} |