Puppet Class: profile::netconsole::server

Defined in:
modules/profile/manifests/netconsole/server.pp

Overview

SPDX-License-Identifier: Apache-2.0 Class: profile::netconsole::server

This profile configures netconsole server on the host.

Sample Usage:

include profile::netconsole::server

Parameters:

  • ensure (Wmflib::Ensure) (defaults to: lookup('profile::netconsole::server::ensure', {default_value => 'absent'}))
  • port (Stdlib::Port::User) (defaults to: lookup('profile::netconsole::server::port', {default_value => 6666}))


9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/profile/manifests/netconsole/server.pp', line 9

class profile::netconsole::server (
    Wmflib::Ensure $ensure = lookup('profile::netconsole::server::ensure', {default_value => 'absent'}),
    Stdlib::Port::User $port = lookup('profile::netconsole::server::port', {default_value => 6666}),
) {
    class { '::netconsole::server':
      ensure => $ensure,
      port   => $port,
    }

    ferm::service { 'netconsole-server':
        ensure => $ensure,
        proto  => 'udp',
        port   => $port,
    }
}