Defined Type: interface::rename

Defined in:
modules/interface/manifests/rename.pp

Overview

Parameters:

  • mac (Stdlib::MAC)


11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'modules/interface/manifests/rename.pp', line 11

define interface::rename (
    Stdlib::MAC $mac,
) {
    $new_name = $title

    # NOTE: I don't think there is need to notify or reload any service.
    # this will be read by systemd-udev at boot time. I may be wrong tho.

    file { "/etc/systemd/network/10-persistent-net-${new_name}.link":
        ensure  => 'present',
        content => template('interface/rename.link.erb'),
    }
}