Puppet Class: zabbix::userparameter

Defined in:
manifests/userparameter.pp

Summary

This class can be used when you use hiera or The Foreman. With this tools you can't use and define. This make use of "create_resources".

Overview

Examples:

zabbix::userparameter::data:
  MySQL:
    content: UserParameter=mysql.ping,mysqladmin -uroot ping | grep -c alive

Parameters:

  • data (Hash) (defaults to: {})

    This is the data in YAML format

Author:

  • Werner Dijkerman <ikben@werner-dijkerman.nl>



8
9
10
11
12
13
14
15
16
17
# File 'manifests/userparameter.pp', line 8

class zabbix::userparameter (
  Hash $data = {},
) {
  $_data = hiera_hash('zabbix::userparameter::data', $data)
  $_data.each |$key,$value| {
    zabbix::userparameters { $key:
      * => $value,
    }
  }
}