Puppet Class: profile::wmcs::dologmsg

Defined in:
modules/profile/manifests/wmcs/dologmsg.pp

Overview

Parameters:

  • dologmsg_host (Stdlib::Host) (defaults to: lookup('dologmsg_host', {'default_value' => 'wm-bot.wm-bot.wmcloud.org'}))
  • dologmsg_port (Stdlib::Port) (defaults to: lookup('dologmsg_port', {'default_value' => 64834}))


1
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
28
29
30
# File 'modules/profile/manifests/wmcs/dologmsg.pp', line 1

class profile::wmcs::dologmsg(
    Stdlib::Host $dologmsg_host = lookup('dologmsg_host', {'default_value' => 'wm-bot.wm-bot.wmcloud.org'}),
    Stdlib::Port $dologmsg_port = lookup('dologmsg_port', {'default_value' => 64834}),
){
    # dologmsg to send log messages, configured using $dologmsg_* parameters
    file { '/usr/local/bin/dologmsg':
        ensure  => present,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
        content => template('profile/wmcs/dologmsg.erb'),
    }

    file {'/usr/local/share/man/man1/':
        ensure  => 'directory',
        recurse => true,
        owner   => 'root',
        group   => 'root',
        mode    => '0555',
    }

    file { '/usr/local/share/man/man1/dologmsg.1':
        ensure  => file,
        owner   => 'root',
        group   => 'root',
        mode    => '0444',
        source  => 'puppet:///modules/profile/manpages/man/dologmsg.1',
        require => File['/usr/local/share/man/man1/'],
    }
}