Used the sample ethernet connection from the README:
networkmanager::ifc::connection {
'z1':
ensure => present,
mac_address => '52:54:00:4d:2a:56',
ipv4_method => 'manual',
ipv4_address => '192.168.1.12/24,192.168.1.1',
ipv4_dns => '8.8.8.8;8.8.4.4;',
ipv6_method => 'manual',
ipv6_dhcp_duid => '00:22:66::52:54:10:44:2a:56'
ipv6_address => 'IPV6ADDRESS/PREFIX',
ipv6_dns => 'IPV6DNS1;IPV6DNS2;'
ipv6_gateway => 'IPV6GATEWAY';
}
I fixed the id to meet the requirement, set ipv6_method to ignore and removed the rest of the ipv6 configuration. Put in the interface_name. I can't get it to work. I get the error when it iterated through to get the keyfile_content.
$keyfile_contents = deep_merge(
$interface_name_config,
$master_config,
$connection_config,
$mac_config,
$ipv4_config,
$ipv4_may_fail_config,
$ipv4_gw_config,
$ipv4_address_config,
$ipv4_dns_config,
$ipv6_config,
$ipv6_may_fail_config,
$ipv6_gw_config,
$ipv6_address_config,
$ipv6_dns_config,
$ipv6_duid_config,
$additional_config
)
It complained: Error while evaluating a Function Call, undefined method each for "":String
Trying to figure out what is the difference between this and the bond connection. I am able to get the bond one to work without any issue.
Used the sample ethernet connection from the README:
I fixed the
idto meet the requirement, setipv6_methodtoignoreand removed the rest of the ipv6 configuration. Put in theinterface_name. I can't get it to work. I get the error when it iterated through to get the keyfile_content.It complained: Error while evaluating a Function Call, undefined method
eachfor "":StringTrying to figure out what is the difference between this and the bond connection. I am able to get the bond one to work without any issue.