Skip to content

Commit

Permalink
Merge branch 'master' of github.com:DataDog/puppet-datadog-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
truthbk committed Jun 22, 2016
2 parents da2b65d + f0cca16 commit aedca40
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ that needs to be done.
puppet_run_reports => true,
}

__To support reporting, your Puppet master needs to have the [dogapi](https://github.com/DataDog/dogapi-rb) gem installed, to do that either run the puppet agent on your master with this configuration or install it manually with `gem`__
__To support reporting, your Puppet master needs to have the [dogapi](https://github.com/DataDog/dogapi-rb) gem installed, to do that either run the puppet agent on your master with this configuration or install it manually with `gem`.__
_Please note if on Puppet Enterprise or POSS (ie. >=3.7.0) there is a soft dependency for reporting on the `puppetserver_gem` module. Install with `puppet module install puppetlabs-puppetserver_gem` - installing manually with `gem` will *not* work._

3. Include any other integrations you want the agent to use, e.g.

Expand Down Expand Up @@ -97,6 +98,7 @@ And on all of your Puppet client nodes add:
# ...
report=true


If you get

err: Could not send report:
Expand Down
10 changes: 9 additions & 1 deletion manifests/reports.pp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@

include datadog_agent::params
$rubydev_package = $datadog_agent::params::rubydev_package
$gemprovider = 'puppetserver_gem'

# set the right provider
if (!defined('$::serverversion') or versioncmp($::serverversion, '3.7.0') < 0) {
$_gemprovider = 'gem'
} else {
$_gemprovider = $gemprovider
}

# check to make sure that you're not installing rubydev somewhere else
if ! defined(Package[$rubydev_package]) {
Expand Down Expand Up @@ -48,7 +56,7 @@

package{'dogapi':
ensure => 'installed',
provider => 'gem',
provider => $_gemprovider,
}

}

0 comments on commit aedca40

Please sign in to comment.