Puppet Class: ci_agent::integrations::elasticsearch

Inherits:
ci_agent::params
Defined in:
manifests/integrations/elasticsearch.pp

Overview

Class: ci_agent::integrations::elasticsearch

This class will install the necessary configuration for the elasticsearch integration

Parameters:

$url:
  The URL for Elasticsearch

Sample Usage:

class { 'ci_agent::integrations::elasticsearch' :
  url  => "http://localhost:9201"
}

Parameters:

  • url (Any) (defaults to: 'http://localhost:9200')


15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'manifests/integrations/elasticsearch.pp', line 15

class ci_agent::integrations::elasticsearch(
  $url = 'http://localhost:9200'
) inherits ci_agent::params {

  file { "${ci_agent::params::conf_dir}/elastic.yaml":
    ensure  => file,
    owner   => $ci_agent::params::oneapm_ci_user,
    group   => $ci_agent::params::oneapm_ci_group,
    mode    => '0644',
    content => template('ci_agent/agent-conf.d/elastic.yaml.erb'),
    require => Package[$ci_agent::params::package_name],
    notify  => Service[$ci_agent::params::service_name]
  }
}