Defined Type: profile::lvs::tagged_interface

Defined in:
modules/profile/manifests/lvs/tagged_interface.pp

Overview

Parameters:

  • interfaces (Any)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# File 'modules/profile/manifests/lvs/tagged_interface.pp', line 1

define profile::lvs::tagged_interface($interfaces) {
    $vlan_info = $interfaces[$title]
    $vlan_id = $vlan_info['id']
    if $::hostname in $vlan_info['iface'] {
        $iface_str = $vlan_info['iface'][$::hostname]
        $iface = split($iface_str, ':')
        $tag = "${iface[0]}.${vlan_id}"

        interface::tagged { $tag:
            base_interface => $iface[0],
            vlan_id        => $vlan_id,
            address        => $iface[1],
            netmask        => $vlan_info['netmask']
        }

    }
}