Puppet Class: ganglia::web

Inherits:
ganglia::params
Defined in:
manifests/web.pp

Summary

ganglia::web Sets php web package and config for Ganglia

Overview

Parameters:

  • ganglia_ip (Stdlib::IP::Address) (defaults to: '127.0.0.1')

    IP address of web daemon

  • ganglia_port (Integer) (defaults to: 8652)

    Port of web daemon



10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# File 'manifests/web.pp', line 10

class ganglia::web (
  Stdlib::IP::Address $ganglia_ip   = '127.0.0.1',
  Integer             $ganglia_port = 8652,
) inherits ganglia::params {
  package { $ganglia::params::web_package_name:
    ensure => present,
  }

  file { $ganglia::params::web_php_config:
    ensure  => file,
    owner   => 'root',
    group   => 'root',
    mode    => '0644',
    content => template($ganglia::params::web_php_erb),
    require => Package[$ganglia::params::web_package_name],
  }
}