Puppet Class: cloudinsight_agent::integrations::varnish

Inherits:
cloudinsight_agent::params
Defined in:
manifests/integrations/varnish.pp

Overview

Class: cloudinsight_agent::integrations::varnish

This class will install the necessary configuration for the varnish integration

Parameters:

varnishstat
    Path to the varnishstat binary

tags
    cloudinsight-agent tags

Sample usage:

include ‘cloudinsight_agent::integrations::varnish’

class { ‘cloudinsight_agent::integrations::varnish’:

url      => '/usr/bin/varnishstat',
tags     => ['env:production'],

}

Parameters:

  • varnishstat (Any) (defaults to: '/usr/bin/varnishstat')
  • tags (Any) (defaults to: [])


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/integrations/varnish.pp', line 21

class cloudinsight_agent::integrations::varnish (
  $varnishstat = '/usr/bin/varnishstat',
  $tags      = [],
) inherits cloudinsight_agent::params {

  file { "${cloudinsight_agent::params::conf_dir}/varnish.yaml":
    ensure  => file,
    owner   => $cloudinsight_agent::params::cloudinsight_user,
    group   => $cloudinsight_agent::params::cloudinsight_group,
    mode    => '0600',
    content => template('cloudinsight_agent/agent-conf.d/varnish.yaml.erb'),
    require => Package[$cloudinsight_agent::params::package_name],
    notify  => Service[$cloudinsight_agent::params::service_name]
  }
}