Skip to content

Commit

Permalink
adding elasticsearch integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Pippenger committed Dec 11, 2013
1 parent 77a6578 commit b1f9159
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
4 changes: 4 additions & 0 deletions files/elastic.yaml
@@ -0,0 +1,4 @@
init_config:

instances:
- url: http://localhost:9200
23 changes: 23 additions & 0 deletions manifests/integrations/elasticsearch.pp
@@ -0,0 +1,23 @@
# Class: datadog::integrations::elasticsearch
#
# This class will install the necessary configuration for the elasticsearch integration
# Parameters:
# none
#
# Sample Usage:
#
# class { 'datadog::integrations::elasticsearch' :
# }
#
class datadog::integrations::elasticsearch inherits datadog::params {

file { "${datadog::conf_dir}/elastic.yaml":
ensure => file,
owner => $datadog::dd_user,
group => $datadog::dd_group,
mode => '0644',
source => 'puppet:///modules/datadog/elastic.yaml',
require => Package[ 'datadog-agent' ],
notify => Service[ $datadog::service_name ],
}
}

0 comments on commit b1f9159

Please sign in to comment.