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'))


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
45
46
47
48
49
50
# File 'modules/profile/manifests/thanos/httpd.pp', line 16

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'],
    }

    profile::idp::client::httpd::site {'thanos.wikimedia.org':
        vhost_content    => 'profile/idp/client/httpd-thanos.erb',
        proxied_as_https => true,
        document_root    => '/var/www/html',
        required_groups  => [
            'cn=ops,ou=groups,dc=wikimedia,dc=org',
            'cn=wmf,ou=groups,dc=wikimedia,dc=org',
            'cn=nda,ou=groups,dc=wikimedia,dc=org',
        ],
        vhost_settings   => {
            query_port      => $query_port,
            maxconn         => $maxconn,
            bucket_web_port => 15902,
        }
    }
    httpd::site { 'thanos-query':
        content => template('profile/thanos/httpd.conf.erb'),
    }

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

    profile::auto_restarts::service { 'apache2': }
}