implement mysql::client subclasses

This commit is contained in:
Jerome Charaoui 2010-05-10 14:26:42 -04:00
parent bc7146f1db
commit 07917bf1b9
3 changed files with 18 additions and 7 deletions

View file

@ -1,12 +1,8 @@
class mysql::client {
package{ 'mysql':
name => $operatingsystem ? {
'debian' => 'mysql-client',
default => 'mysql',
},
alias => 'mysql-client',
ensure => present,
case $operatingsystem {
debian: { include mysql::client::debian }
default: { include mysql::client::base }
}
if $use_shorewall {

8
manifests/client/base.pp Normal file
View file

@ -0,0 +1,8 @@
class mysql::client::base {
package { 'mysql':
ensure => present,
alias => 'mysql-client',
}
}

View file

@ -0,0 +1,7 @@
class mysql::client::debian inherits mysql::client::base {
Package['mysql'] {
name => 'mysql-client',
}
}