Puppet Class: profile::wmcs::metricsinfra::alertmanager::project_proxy

Defined in:
modules/profile/manifests/wmcs/metricsinfra/alertmanager/project_proxy.pp

Summary

Configures an Apache vhost that lets other trusted projects

Overview

SPDX-License-Identifier: Apache-2.0 submit requests to the alertmanager api. (see T304716)

Parameters:

  • $trusted_hosts

    List of trusted Prometheus hosts per project

  • trusted_hosts (Hash[String, Array[Stdlib::Fqdn]]) (defaults to: lookup('profile::wmcs::metricsinfra::alertmanager::project_proxy::trusted_hosts'))


5
6
7
8
9
10
11
12
13
14
15
# File 'modules/profile/manifests/wmcs/metricsinfra/alertmanager/project_proxy.pp', line 5

class profile::wmcs::metricsinfra::alertmanager::project_proxy (
    Hash[String, Array[Stdlib::Fqdn]] $trusted_hosts = lookup('profile::wmcs::metricsinfra::alertmanager::project_proxy::trusted_hosts'),
) {
    $trusted_ips = $trusted_hosts.values.flatten.map |Stdlib::Fqdn $fqdn| {
        ipresolve($fqdn, 4)
    }

    httpd::site { 'alertmananger-project-proxy':
        content => template('profile/wmcs/metricsinfra/alertmanager/project-proxy/vhost.conf.erb'),
    }
}