diff options
Diffstat (limited to 'manifests/client/ruby/debian.pp')
-rw-r--r-- | manifests/client/ruby/debian.pp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/manifests/client/ruby/debian.pp b/manifests/client/ruby/debian.pp index 554984b..e2a28e1 100644 --- a/manifests/client/ruby/debian.pp +++ b/manifests/client/ruby/debian.pp @@ -1,6 +1,9 @@ # debian ruby client class mysql::client::ruby::debian { - package { 'libmysql-ruby': - ensure => present, + if $operatingsystemmajversion >= 7 { + $package = 'ruby-mysql' + } else { + $package = 'libmysql-ruby' } + ensure_packages([ $package ]) } |