Browse files

adding package names to install rubygems and ruby-dev on deb/rh

  • Loading branch information...
1 parent 6593f45 commit d11d06853d383780eb60013952a668f20b15382b @robbyt robbyt committed Dec 19, 2011
Showing with 14 additions and 2 deletions.
  1. +14 −2 manifests/params.pp
View
16 manifests/params.pp
@@ -15,7 +15,19 @@
# Sample Usage:
#
class datadog::params {
+ $api_key = "key"
+ $dd_url = "https://app.datadoghq.com"
- $api_key = "key"
- $dd_url = "https://app.datadoghq.com"
+ case $operatingsystem {
+ "Ubuntu","Debian": {
+ $rubygems_package = 'rubygems'
+ $report_packages = ['ruby-dev']
+ }
+ "RedHat","CentOS","Fedora": {
+ $rubygems_package = 'rubygems'
+ $report_packages = ['ruby-devel']
+ }
+ default: { fail("The DataDog module only support Red Hat and Ubuntu derivatives") }
+ }
+
}

0 comments on commit d11d068

Please sign in to comment.