Defined Type: interface::setting

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

Overview

Parameters:

  • interface (Any)
  • setting (Any)
  • value (Any)


5
6
7
8
9
10
# File 'modules/interface/manifests/setting.pp', line 5

define interface::setting($interface, $setting, $value) {
    augeas { "${interface}_${title}":
        context => "/files/etc/network/interfaces/*[. = '${interface}' and family = 'inet']",
        changes => "set ${setting} '${value}'",
    }
}