puppet-module-network
puppet-module-network copied to clipboard
problem with vlan interface using network_interface resource
When configuring a vlan interface, it complains that the interface does not exists. I expect it to be created.
The puppet config:
network_config {
"bond0.901":
ensure => present,
exclusive => false,
bootproto => "static",
onboot => "yes",
ipaddr => "172.18.91.71",
netmask => "255.255.255.0",
vlan => "yes";
}
network_interface {
"bond0.901":
state => "up";
}
The error:
err: /Stage[main]//Node[nms-2]/Network_interface[bond0.901]: Could not evaluate: Network interface bond0.901 does not exist
When the interface does not exists, this can be created with the vconfig command
/sbin/vconfig add <interf> <vlanid>
see my pull request