|
4 | 4 | #
|
5 | 5 | # === Parameters:
|
6 | 6 | #
|
7 |
| -# $ensure - required - up|down |
8 |
| -# $ipaddress - required |
9 |
| -# $netmask - required |
10 |
| -# $gateway - optional |
11 |
| -# $ipv6address - optional |
12 |
| -# $ipv6init - optional - defaults to false |
13 |
| -# $ipv6gateway - optional |
14 |
| -# $macaddress - optional - defaults to macaddress_$title |
15 |
| -# $ipv6autoconf - optional - defaults to false |
16 |
| -# $userctl - optional - defaults to false |
17 |
| -# $mtu - optional |
18 |
| -# $ethtool_opts - optional |
19 |
| -# $peerdns - optional |
20 |
| -# $ipv6peerdns - optional - defaults to false |
21 |
| -# $dns1 - optional |
22 |
| -# $dns2 - optional |
23 |
| -# $domain - optional |
24 |
| -# $scope - optional |
| 7 | +# $ensure - required - up|down |
| 8 | +# $ipaddress - required |
| 9 | +# $netmask - required |
| 10 | +# $gateway - optional |
| 11 | +# $ipv6address - optional |
| 12 | +# $ipv6init - optional - defaults to false |
| 13 | +# $ipv6gateway - optional |
| 14 | +# $manage_hwaddr - optional - defaults to true |
| 15 | +# $macaddress - optional - defaults to macaddress_$title |
| 16 | +# $ipv6autoconf - optional - defaults to false |
| 17 | +# $userctl - optional - defaults to false |
| 18 | +# $mtu - optional |
| 19 | +# $ethtool_opts - optional |
| 20 | +# $peerdns - optional |
| 21 | +# $ipv6peerdns - optional - defaults to false |
| 22 | +# $dns1 - optional |
| 23 | +# $dns2 - optional |
| 24 | +# $domain - optional |
| 25 | +# $scope - optional |
25 | 26 | #
|
26 | 27 | # === Actions:
|
27 | 28 | #
|
|
57 | 58 | $ipv6init = false,
|
58 | 59 | $ipv6gateway = undef,
|
59 | 60 | $macaddress = undef,
|
| 61 | + $manage_hwaddr = true, |
60 | 62 | $ipv6autoconf = false,
|
61 | 63 | $userctl = false,
|
62 | 64 | $mtu = undef,
|
|
88 | 90 | validate_bool($ipv6autoconf)
|
89 | 91 | validate_bool($peerdns)
|
90 | 92 | validate_bool($ipv6peerdns)
|
| 93 | + validate_bool($manage_hwaddr) |
91 | 94 |
|
92 | 95 | network_if_base { $title:
|
93 |
| - ensure => $ensure, |
94 |
| - ipv6init => $ipv6init, |
95 |
| - ipaddress => $ipaddress, |
96 |
| - ipv6address => $ipv6address, |
97 |
| - netmask => $netmask, |
98 |
| - gateway => $gateway, |
99 |
| - ipv6gateway => $ipv6gateway, |
100 |
| - ipv6autoconf => $ipv6autoconf, |
101 |
| - macaddress => $macaddy, |
102 |
| - bootproto => 'none', |
103 |
| - userctl => $userctl, |
104 |
| - mtu => $mtu, |
105 |
| - ethtool_opts => $ethtool_opts, |
106 |
| - peerdns => $peerdns, |
107 |
| - ipv6peerdns => $ipv6peerdns, |
108 |
| - dns1 => $dns1, |
109 |
| - dns2 => $dns2, |
110 |
| - domain => $domain, |
111 |
| - linkdelay => $linkdelay, |
112 |
| - scope => $scope, |
| 96 | + ensure => $ensure, |
| 97 | + ipv6init => $ipv6init, |
| 98 | + ipaddress => $ipaddress, |
| 99 | + ipv6address => $ipv6address, |
| 100 | + netmask => $netmask, |
| 101 | + gateway => $gateway, |
| 102 | + ipv6gateway => $ipv6gateway, |
| 103 | + ipv6autoconf => $ipv6autoconf, |
| 104 | + macaddress => $macaddy, |
| 105 | + manage_hwaddr => $manage_hwaddr, |
| 106 | + bootproto => 'none', |
| 107 | + userctl => $userctl, |
| 108 | + mtu => $mtu, |
| 109 | + ethtool_opts => $ethtool_opts, |
| 110 | + peerdns => $peerdns, |
| 111 | + ipv6peerdns => $ipv6peerdns, |
| 112 | + dns1 => $dns1, |
| 113 | + dns2 => $dns2, |
| 114 | + domain => $domain, |
| 115 | + linkdelay => $linkdelay, |
| 116 | + scope => $scope, |
113 | 117 | }
|
114 | 118 | } # define network::if::static
|
0 commit comments