merge with lavamind
This commit is contained in:
commit
7bbe7a95a6
6 changed files with 32 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',
|
||||
}
|
||||
|
||||
}
|
7
manifests/client/ruby.pp
Normal file
7
manifests/client/ruby.pp
Normal file
|
@ -0,0 +1,7 @@
|
|||
class mysql::client::ruby {
|
||||
|
||||
case $operatingsystem {
|
||||
debian: { include mysql::client::ruby::debian }
|
||||
}
|
||||
|
||||
}
|
7
manifests/client/ruby/debian.pp
Normal file
7
manifests/client/ruby/debian.pp
Normal file
|
@ -0,0 +1,7 @@
|
|||
class mysql::client::ruby::debian {
|
||||
|
||||
package { 'libmysql-ruby':
|
||||
ensure => present,
|
||||
}
|
||||
|
||||
}
|
0
tests/run_tests
Executable file → Normal file
0
tests/run_tests
Executable file → Normal file
Loading…
Reference in a new issue