voxpupuli / puppet-network

Types and providers to manage network interfaces
https://forge.puppet.com/puppet/network
Apache License 2.0
66 stars 108 forks source link

network_config breaks on Oracle Linux 6 due to "check_link_down" function in ifcfg script #131

Open robinbowes opened 8 years ago

robinbowes commented 8 years ago

Oracle Linux 6.7 (possible RHEL 6.7 too - not tested) puts the following in the ifcfg- file:

check_link_down() {
 return 1;
}

This breaks the network_config provider. Error is:

Error: Could not prefetch network_config provider 'redhat': /etc/sysconfig/network-scripts/ifcfg-eth0 is malformed; "check_link_down() {" did not match "(?-mix:^\s*(.+?)\s*=\s*(.*)\s*$)"
jyaworski commented 8 years ago

So we're not checking for functions? I suppose we could add {}.