Puppet Class: anysync::node::monitoring

Defined in:
manifests/node/monitoring.pp

Overview

Parameters:

  • consul (Boolean) (defaults to: $::anysync::monitoring)
  • collectd (Boolean) (defaults to: $::anysync::monitoring)


1
2
3
4
5
6
7
8
9
10
11
# File 'manifests/node/monitoring.pp', line 1

class anysync::node::monitoring (
  Boolean $consul = $::anysync::monitoring,
  Boolean $collectd = $::anysync::monitoring,
) {
  if $consul {
    tools::consul_cfg { "any-sync-node": port => 8000 }
  }
  if $collectd {
    collectd::cfg { "any-sync-node": content => inline_template("LoadPlugin processes\n<Plugin processes>\n    ProcessMatch \"any-sync-node\" \"/bin/any-sync-node\"\n</Plugin>\n") }
  }
}