From 18cadcda6d9a958d3858f8bf4cdc5e116a4869d7 Mon Sep 17 00:00:00 2001
From: Filip Polbratt <filip.polbratt@hotmail.com>
Date: Sun, 23 Aug 2020 15:50:27 +0200
Subject: [PATCH] Update public_ip.pp

---
 manifests/public_ip.pp | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/manifests/public_ip.pp b/manifests/public_ip.pp
index 5851ece..6269356 100644
--- a/manifests/public_ip.pp
+++ b/manifests/public_ip.pp
@@ -3,8 +3,13 @@ class lysnetwork::public_ip {
   $last_octet = Integer(split($facts['networking']['ip'], '\.')[3],10)
   $last_octet_16 = String($last_octet, '%x')
 
-  if ($facts['os']['name'] == 'Fedora') {
-    ensure_packages(['network-scripts',], {before => Network::Interface["${iface}"]}),
+  if $facts['os']['name'] == 'Fedora' {
+    ensure_packages(
+      ['network-scripts'], 
+      {
+        before => Network::Interface["${iface}"]
+      }
+    )
   }
 
   network::interface { $iface :
-- 
GitLab