24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'manifests/profile/metrics.pp', line 24
class st2::profile::metrics (
$metrics_include = $st2::metrics_include,
$metric_driver = $st2::metric_driver,
$metric_host = $st2::metric_host,
$metric_port = $st2::metric_port,
) inherits st2 {
if $metrics_include {
ini_setting { 'metrics_driver':
path => '/etc/st2/st2.conf',
section => 'metrics',
setting => 'driver',
value => $metric_driver,
tag => 'st2::config',
}
ini_setting { 'metrics_host':
path => '/etc/st2/st2.conf',
section => 'metrics',
setting => 'host',
value => $metric_host,
tag => 'st2::config',
}
ini_setting { 'metrics_port':
path => '/etc/st2/st2.conf',
section => 'metrics',
setting => 'port',
value => $metric_port,
tag => 'st2::config',
}
}
}
|