Puppet Class: cloudinsight_agent::integrations::haproxy
- Inherits:
- cloudinsight_agent::params
- Defined in:
- manifests/integrations/haproxy.pp
Overview
Class: cloudinsight_agent::integrations::haproxy
This class will install the necessary configuration for the haproxy integration
Parameters:
$url:
The URL for haproxy
Sample Usage:
class { 'cloudinsight_agent::integrations::haproxy' :
url => 'http://localhost:8080',
creds => { username => 'admin',
password => 'password',
},
}
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'manifests/integrations/haproxy.pp', line 18
class cloudinsight_agent::integrations::haproxy(
$creds = {},
$url = "http://${::ipaddress}:8080",
) inherits cloudinsight_agent::params {
file {
"${cloudinsight_agent::params::conf_dir}/haproxy.yaml":
ensure => file,
owner => $cloudinsight_agent::params::cloudinsight_user,
group => $cloudinsight_agent::params::cloudinsight_group,
mode => '0644',
content => template('cloudinsight_agent/agent-conf.d/haproxy.yaml.erb'),
require => Package[$cloudinsight_agent::params::package_name],
notify => Service[$cloudinsight_agent::params::service_name]
}
}
|