Puppet Class: profile::pontoon::frontend

Defined in:
modules/profile/manifests/pontoon/frontend.pp

Overview

SPDX-License-Identifier: Apache-2.0

Parameters:

  • public_domain (Any) (defaults to: lookup('public_domain'))


2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# File 'modules/profile/manifests/pontoon/frontend.pp', line 2

class profile::pontoon::frontend (
  $public_domain = lookup('public_domain'),
) {
    $public_services = wmflib::service::fetch().filter |$name, $config| {
        ('public_endpoint' in $config and 'role' in $config)
    }

    class { 'pontoon::public_lb':
        services_config => $public_services,
        public_domain   => $public_domain,
    }

    class { '::httpd':
        modules => ['rewrite'],
    }

    class { 'pontoon::public_certs':
        services_config => $public_services,
        public_domain   => $public_domain,
    }

    firewall::service { 'pontoon-frontend':
        proto => 'tcp',
        port  => [80, 443],
    }
}