Puppet Class: profile::thanos::httpd

Defined in:
modules/profile/manifests/thanos/httpd.pp

Overview

Parameters:

  • query_port (Stdlib::Port::Unprivileged) (defaults to: lookup('profile::thanos::httpd::query_port'))
  • maxconn (Integer) (defaults to: lookup('profile::thanos::httpd::maxconn'))


15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'modules/profile/manifests/thanos/httpd.pp', line 15

class profile::thanos::httpd (
    Stdlib::Port::Unprivileged $query_port = lookup('profile::thanos::httpd::query_port'),
    Integer                    $maxconn    = lookup('profile::thanos::httpd::maxconn'),
) {
    class { '::httpd':
        modules => ['proxy_http'],
    }

    class {'profile::idp::client::httpd':
        vhost_settings => {
            query_port => $query_port,
            maxconn    => $maxconn,
        }
    }
    httpd::site { 'thanos-query':
        content => template('profile/thanos/httpd.conf.erb'),
    }

    ferm::service { 'thanos_httpd':
        proto  => 'tcp',
        port   => 80,
        srange => '$DOMAIN_NETWORKS',
    }
}