Puppet Class: ci_agent::integrations::varnish
- Inherits:
- ci_agent::params
- Defined in:
- manifests/integrations/varnish.pp
Overview
Class: ci_agent::integrations::varnish
This class will install the necessary configuration for the varnish integration
Parameters:
varnishstat
Path to the varnishstat binary
tags
oneapm-ci-agent tags
Sample usage:
include ‘ci_agent::integrations::varnish’
class { ‘ci_agent::integrations::varnish’:
url => '/usr/bin/varnishstat',
tags => ['env:production'],
}
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'manifests/integrations/varnish.pp', line 21
class ci_agent::integrations::varnish (
$varnishstat = '/usr/bin/varnishstat',
$tags = [],
) inherits ci_agent::params {
file { "${ci_agent::params::conf_dir}/varnish.yaml":
ensure => file,
owner => $ci_agent::params::oneapm_ci_user,
group => $ci_agent::params::oneapm_ci_group,
mode => '0600',
content => template('ci_agent/agent-conf.d/varnish.yaml.erb'),
require => Package[$ci_agent::params::package_name],
notify => Service[$ci_agent::params::service_name]
}
}
|