Defined Type: l2mesh::host

Defined in:
manifests/host.pp

Overview

vim: set expandtab:

Parameters:

  • host (Any)
  • ip (Any)
  • port (Any)
  • tcp_only (Any)
  • public_key (Any)
  • tag_conf (Any)
  • fqdn (Any) (defaults to: $name)
  • conf (Any) (defaults to: undef)


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
# File 'manifests/host.pp', line 2

define l2mesh::host(
  $host,
  $ip,
  $port,
  $tcp_only,
  $public_key,
  $tag_conf,
  $fqdn = $name,
  $conf = undef,
) {

  file { $host:
    owner   => root,
    group   => root,
    mode    => '0444',
    require => File[$hosts],
    notify  => Exec[$reload],
    before  => Service[$service],
    tag     => $tag,
    content => template('l2mesh/host.erb'),

  }
  concat::fragment { "${tag_conf}_${fqdn}":
    target  => $conf,
    tag     => "${tag_conf}_${fqdn}",
    content => "ConnectTO = ${fqdn}\n",
  }
}