Puppet Data Type Alias: Wmflib::Service

Defined in:
modules/wmflib/types/service.pp

Overview

Define all data pertaining to a service. Of specific interest might be the “state”, which represent the status in a state machine of the specific service we're declaring. If modified, update also spicerack.service.Service.

Alias of

Struct[{
    'description'     => String[1],
    'sites'           => Array[String[1]],
    'ip'              => Hash[String[1], Wmflib::Service::Ipblock],
    'port'            => Stdlib::Port, # This used to be optional in lvs config
    'encryption'      => Boolean, # Whether we need TLS to connect
    'lvs'             => Optional[Wmflib::Service::Lvs],
    'probes'          => Optional[Wmflib::Service::Probes],
    'page'            => Optional[Boolean],
    'state'           => Enum['service_setup', 'lvs_setup', 'production'],
    'discovery'       => Optional[Wmflib::Service::Discovery],
    'role'            => Optional[String[1]],
    'public_endpoint' => Optional[String[1]],
    'aliases'         => Optional[Array[String[1]]],
    'public_aliases'  => Optional[Array[String[1]]],
    'httpbb_dir'      => Optional[String[1]],
    }]


# File 'modules/wmflib/types/service.pp', line 47