Puppet Class: profile::prometheus::pushgateway
- Defined in:
- modules/profile/manifests/prometheus/pushgateway.pp
Overview
SPDX-License-Identifier: Apache-2.0
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'modules/profile/manifests/prometheus/pushgateway.pp', line 2
class profile::prometheus::pushgateway (
Optional[Stdlib::Fqdn] $pushgateway_host = lookup('profile::prometheus::pushgateway_host'),
) {
$http_port = 9091
if $pushgateway_host == $::fqdn {
$ensure = present
} else {
$ensure = absent
}
class { 'prometheus::pushgateway':
ensure => $ensure,
listen_port => $http_port,
}
}
|