implement mysql::client subclasses
This commit is contained in:
parent
bc7146f1db
commit
07917bf1b9
3 changed files with 18 additions and 7 deletions
|
@ -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
8
manifests/client/base.pp
Normal file
|
@ -0,0 +1,8 @@
|
|||
class mysql::client::base {
|
||||
|
||||
package { 'mysql':
|
||||
ensure => present,
|
||||
alias => 'mysql-client',
|
||||
}
|
||||
|
||||
}
|
7
manifests/client/debian.pp
Normal file
7
manifests/client/debian.pp
Normal file
|
@ -0,0 +1,7 @@
|
|||
class mysql::client::debian inherits mysql::client::base {
|
||||
|
||||
Package['mysql'] {
|
||||
name => 'mysql-client',
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue