Puppet Class: cloudinsight_agent::integrations::rabbitmq

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

Overview

Parameters:

  • url (Any) (defaults to: undef)
  • username (Any) (defaults to: undef)
  • password (Any) (defaults to: undef)
  • queues (Any) (defaults to: undef)
  • vhosts (Any) (defaults to: undef)


24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'manifests/integrations/rabbitmq.pp', line 24

class cloudinsight_agent::integrations::rabbitmq (
  $url       = undef,
  $username  = undef,
  $password  = undef,
  $queues    = undef,
  $vhosts    = undef,
) inherits cloudinsight_agent::params {

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