networkmanager::ifc::connection {
'ens192':
ensure => present,
ipv4_method => 'auto',
ipv4_address => $external_ip,
ipv6_method => 'disabled',
}
For ethernet connection ens192 either interface_name or mac_address is required
The attached patch would fix this. It replace interfacename with a new default, as in the other implementations:
diff --git a/manifests/ifc/connection.pp b/manifests/ifc/connection.pp
index a101750..393dac0 100644
--- a/manifests/ifc/connection.pp
+++ b/manifests/ifc/connection.pp
@@ -30,7 +30,7 @@ define networkmanager::ifc::connection(
Enum['absent', 'present'] $ensure = present,
Enum['up', 'down'] $state = 'up',
String $id = $title,
- Optional[String[3, 15]] $interface_name = undef,
+ Optional[String[3, 15]] $interface_name = $title,
Optional[Stdlib::MAC] $mac_address = undef,
Optional[String] $master = undef,
String $type = 'ethernet',
The following code:
throws this error:
The attached patch would fix this. It replace interfacename with a new default, as in the other implementations: