From 68b313872aa9d5390b876a5537d0f0c92bc6b612 Mon Sep 17 00:00:00 2001 From: sgnl05 Date: Thu, 9 Jul 2015 10:13:21 +0200 Subject: [PATCH] Added "eno*" to interface name matching This will fix issue with RHEL7 servers having "eno167800..." names for interfaces --- manifests/agent.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/agent.pp b/manifests/agent.pp index ed38c2466..7cf77008a 100644 --- a/manifests/agent.pp +++ b/manifests/agent.pp @@ -216,7 +216,7 @@ # can find the ipaddress of this specific interface if listenip # is set to for example "eth1" or "bond0.73". if ($listenip != undef) { - if ($listenip =~ /^(eth|bond|lxc).*/) { + if ($listenip =~ /^(eth|bond|lxc|eno).*/) { $int_name = "ipaddress_${listenip}" $listen_ip = inline_template('<%= scope.lookupvar(int_name) %>') } elsif is_ip_address($listenip) {