Puppet Class: profile::eventschemas::service

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

Overview

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 (Any) (defaults to: hiera('profile::eventschemas::service::server_name', "schema.svc.${::site}.wmnet"))
  • server_alias (Any) (defaults to: hiera('profile::eventschemas::service::server_alias', undef))
  • port (Any) (defaults to: hiera('profile::eventschemas::service::port', 8190))
  • allow_origin (Any) (defaults to: hiera('profile::eventschemas::service::allow_origin', undef))


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/eventschemas/service.pp', line 6

class profile::eventschemas::service(
    # Linter thinks that $::site is a parameter, but it isn't.
    # lint:ignore:wmf_styleguide
    $server_name  = hiera('profile::eventschemas::service::server_name', "schema.svc.${::site}.wmnet"),
    # lint:endignore
    $server_alias = hiera('profile::eventschemas::service::server_alias', undef),
    $port         = hiera('profile::eventschemas::service::port', 8190),
    $allow_origin = hiera('profile::eventschemas::service::allow_origin', 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,
    }
}