Puppet Class: prometheus_cd::params
- Inherited by:
-
prometheus_cd::main::dirs
prometheus_cd::main::files
prometheus_cd::main::config
prometheus_cd::main::install
prometheus_cd::main::service
prometheus_cd::main::yumrepo
prometheus_cd::firewall::iptables
- Defined in:
- manifests/params.pp
Summary
Class holds all parameters for the prometheus_cd module.Overview
prometheus_cd::params.pp Module name: prometheus_cd Author: Arne Teuke (arne_teuke@confdroid.com)
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'manifests/params.pp', line 15
class prometheus_cd::params (
# installation
String $reqpackage_prom = 'prometheus2',
String $reqpackage_ne = 'node_exporter',
String $pkg_ensure = 'present',
# config logic
Boolean $manage_prometheus = false,
Boolean $manage_node_exporter = false,
Boolean $ps_manage_fw = false,
String $ps_prom_host = 'prometheus.example.net',
# firewall
String $ps_fw_prefix = '50',
String $ps_main_port = '9090',
) {
# defaults
$fqdn = $facts['networking']['fqdn']
$domain = $facts['networking']['domain']
$os_name = $facts['os']['name']
$os_release = $facts['os']['release']['major']
# dirs
$ps_main_dir = '/etc/prometheus'
# includes must be last
include prometheus_cd::main::config
}
|