Puppet Class: profile::eventschemas::service

Defined in:
modules/profile/manifests/eventschemas/service.pp

Overview

SPDX-License-Identifier: Apache-2.0

Class profile::eventschemas::service

Includes profile::eventschemas::repositories and sets up an HTTP site to serve static schema repository files over HTTP.

Parameters:

  • server_name (Stdlib::Fqdn) (defaults to: lookup('profile::eventschemas::service::server_name', {default_value => "schema.svc.${::site}.wmnet"}))
  • server_alias (Optional[Array]) (defaults to: lookup('profile::eventschemas::service::server_alias', {default_value => undef}))
  • port (Stdlib::Port) (defaults to: lookup('profile::eventschemas::service::port', {default_value => 8190}))
  • allow_origin (Optional[String]) (defaults to: lookup('profile::eventschemas::service::allow_origin', {default_value => undef}))


7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'modules/profile/manifests/eventschemas/service.pp', line 7

class profile::eventschemas::service(
    # Linter thinks that $::site is a parameter, but it isn't.
    # lint:ignore:wmf_styleguide
    Stdlib::Fqdn $server_name      = lookup('profile::eventschemas::service::server_name', {default_value => "schema.svc.${::site}.wmnet"}),
    # lint:endignore
    Optional[Array] $server_alias  = lookup('profile::eventschemas::service::server_alias', {default_value => undef}),
    Stdlib::Port $port             = lookup('profile::eventschemas::service::port', {default_value => 8190}),
    Optional[String] $allow_origin = lookup('profile::eventschemas::service::allow_origin', {default_value => undef}),
) {
    include ::profile::eventschemas::repositories
    class { '::eventschemas::service':
        server_name  => $server_name,
        server_alias => $server_alias,
        port         => $port,
        allow_origin => $allow_origin,
    }

    ferm::service { 'eventschemas_service_http':
        proto => 'tcp',
        port  => $port,
    }
}