Skip to content

Latest commit

 

History

History
530 lines (316 loc) · 12.2 KB

REFERENCE.md

File metadata and controls

530 lines (316 loc) · 12.2 KB

Reference

Table of Contents

Classes

  • ganglia::gmetad: ganglia::gmetad Manages ganglia gmond & gmetad daemons + web front end
  • ganglia::gmond: ganglia::gmond Manages ganglia gmond & gmetad daemons + web front end
  • ganglia::params: ganglia::params provides parameters for the ganglia module
  • ganglia::web: ganglia::web Sets php web package and config for Ganglia

Functions

  • ganglia_validate_clusters: The following values will pass: * [{ 'name' => 'my cluster', 'address' => 'localhost' }] * [{ 'name' => 'my cluster', 'address' => 'localhos
  • ganglia_validate_rras: The following values will pass: * [{ cf => 'AVERAGE', xff => 0.5, steps => 1, rows => 5856 }] * [ { cf => 'AVERAGE', xff =>

Classes

ganglia::gmetad

ganglia::gmetad Manages ganglia gmond & gmetad daemons + web front end

Parameters

The following parameters are available in the ganglia::gmetad class:

all_trusted

Data type: Enum['on', 'off']

Default value: 'off'

clusters

Data type: Array[Hash]

Default value: [{ 'name' => 'my cluster', 'address' => 'localhost' }]

gridname

Data type: Optional[String[1]]

Default value: undef

rras

Data type: Array[Hash]

see README.md

Default value: $ganglia::params::rras

trusted_hosts

Data type: Array[String[1]]

Default value: []

gmetad_package_name

Data type: Variant[String[1], Array[String[1]]]

Default value: $ganglia::params::gmetad_package_name

gmetad_package_ensure

Data type: String[1]

Default value: 'present'

gmetad_service_name

Data type: String[1]

Default value: $ganglia::params::gmetad_service_name

gmetad_service_config

Data type: String[1]

Default value: $ganglia::params::gmetad_service_config

gmetad_user

Data type: String[1]

Default value: $ganglia::params::gmetad_user

gmetad_hostnames_case

Data type: Integer[0, 1]

Default value: $ganglia::params::gmetad_hostnames_case

gmetad_status_command

Data type: String[1]

Default value: $ganglia::params::gmetad_status_command

ganglia::gmond

ganglia::gmond Manages ganglia gmond & gmetad daemons + web front end

Parameters

The following parameters are available in the ganglia::gmond class:

globals_deaf

Data type: String[1]

Default value: 'no'

globals_host_dmax

Data type: String[1]

Default value: '0'

globals_send_metadata_interval

Data type: String[1]

Default value: '300'

globals_override_hostname

Data type: Optional[Stdlib::Fqdn]

Default value: undef

globals_user

Data type: String[1]

Default value: 'ganglia'

globals_max_udp_msg_len

Data type: Integer

Default value: 1472

cluster_name

Data type: String[1]

Default value: 'unspecified'

cluster_owner

Data type: String[1]

Default value: 'unspecified'

cluster_latlong

Data type: String[1]

Default value: 'unspecified'

cluster_url

Data type: Optional[Variant[Stdlib::HTTPUrl,Stdlib::Fqdn]]

Default value: undef

host_location

Data type: String[1]

Default value: 'unspecified'

udp_send_channel

Data type: Array[Hash]

Default value: [{ mcast_join => '239.2.11.71', port => 8649, ttl => 1 }]

udp_recv_channel

Data type: Array[Hash]

Default value: [{ mcast_join => '239.2.11.71', port => 8649, bind => '239.2.11.71' }]

tcp_accept_channel

Data type: Array[Hash]

Default value: [{ port => 8659 }]

gmond_package_name

Data type: Variant[String[1], Array[String[1]]]

Default value: $ganglia::params::gmond_package_name

gmond_package_ensure

Data type: String[1]

Default value: 'present'

gmond_service_name

Data type: String[1]

Default value: $ganglia::params::gmond_service_name

gmond_service_config

Data type: String[1]

Default value: $ganglia::params::gmond_service_config

gmond_status_command

Data type: String[1]

Default value: $ganglia::params::gmond_status_command

ganglia::params

ganglia::params provides parameters for the ganglia module

ganglia::web

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

Parameters

The following parameters are available in the ganglia::web class:

ganglia_ip

Data type: Stdlib::IP::Address

IP address of web daemon

Default value: '127.0.0.1'

ganglia_port

Data type: Integer

Port of web daemon

Default value: 8652

Functions

ganglia_validate_clusters

Type: Ruby 3.x API

The following values will pass:

  • [{ 'name' => 'my cluster', 'address' => 'localhost' }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => 10 }]
  • [ { 'name' => 'foo', 'address' => [ 'foo1.example.org', 'foo2.example.org', 'foo3.example.org', ], }, { 'name' => 'bar', 'address' => [ 'bar1.example.org', 'bar2.example.org', 'bar3.example.org' ], 'polling_interval' => 42, }, { 'name' => 'baz', 'address' => [ 'baz1.example.org', 'baz2.example.org', 'baz3.example.org', ], }, ]

The following values will fail, causing compilation to abort:

  • true
  • false
  • {}
  • 'foo'
  • undef
  • []
  • ['foo', 'bar']
  • [{}, {}]
  • [{ 'address' => 'localhost' }]
  • [{ 'name' => ['my cluster'], 'address' => 'localhost' }]
  • [{ 'name' => 'my cluster' }]
  • [{ 'name' => 'my cluster', 'address' => {'a' => 1} }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => [ 10 ] }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => 10, 'foo' => 1, 'bar' => 2 }]

ganglia_validate_clusters()

The following values will pass:

  • [{ 'name' => 'my cluster', 'address' => 'localhost' }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => 10 }]
  • [ { 'name' => 'foo', 'address' => [ 'foo1.example.org', 'foo2.example.org', 'foo3.example.org', ], }, { 'name' => 'bar', 'address' => [ 'bar1.example.org', 'bar2.example.org', 'bar3.example.org' ], 'polling_interval' => 42, }, { 'name' => 'baz', 'address' => [ 'baz1.example.org', 'baz2.example.org', 'baz3.example.org', ], }, ]

The following values will fail, causing compilation to abort:

  • true
  • false
  • {}
  • 'foo'
  • undef
  • []
  • ['foo', 'bar']
  • [{}, {}]
  • [{ 'address' => 'localhost' }]
  • [{ 'name' => ['my cluster'], 'address' => 'localhost' }]
  • [{ 'name' => 'my cluster' }]
  • [{ 'name' => 'my cluster', 'address' => {'a' => 1} }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => [ 10 ] }]
  • [{ 'name' => 'my cluster', 'address' => 'localhost', 'polling_interval' => 10, 'foo' => 1, 'bar' => 2 }]

Returns: Any

ganglia_validate_rras

Type: Ruby 3.x API

The following values will pass:

  • [{ cf => 'AVERAGE', xff => 0.5, steps => 1, rows => 5856 }]

  • [ { cf => 'AVERAGE', xff => 0.5, steps => 1, rows => 5856 }, { cf => 'MAX', xff => 0.5, steps => 1, rows => 5856 }, ]

  • cf (consolidation function) must be AVERAGE | MIN | MAX | LAST

  • xff (xfiles factor) must be a float between 0 and 1

  • steps must be an integer

  • rows must be an integer greater than zero

If all hashes are not defined then compilation will fail

ganglia_validate_rras()

The following values will pass:

  • [{ cf => 'AVERAGE', xff => 0.5, steps => 1, rows => 5856 }]

  • [ { cf => 'AVERAGE', xff => 0.5, steps => 1, rows => 5856 }, { cf => 'MAX', xff => 0.5, steps => 1, rows => 5856 }, ]

  • cf (consolidation function) must be AVERAGE | MIN | MAX | LAST

  • xff (xfiles factor) must be a float between 0 and 1

  • steps must be an integer

  • rows must be an integer greater than zero

If all hashes are not defined then compilation will fail

Returns: Any