merge with lavamind

This commit is contained in:
mh 2010-07-01 05:23:21 +02:00
commit 7bbe7a95a6
6 changed files with 32 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',
}
}

7
manifests/client/ruby.pp Normal file
View file

@ -0,0 +1,7 @@
class mysql::client::ruby {
case $operatingsystem {
debian: { include mysql::client::ruby::debian }
}
}

View file

@ -0,0 +1,7 @@
class mysql::client::ruby::debian {
package { 'libmysql-ruby':
ensure => present,
}
}

0
tests/run_tests Executable file → Normal file
View file