From 39c281d82f5fc8a72922d061738ba4318d67c923 Mon Sep 17 00:00:00 2001
From: Nils Olof Paulsson <nils.olof.paulsson@liu.se>
Date: Tue, 14 Feb 2023 17:51:19 +0100
Subject: [PATCH] add FW

---
 manifests/init.pp | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/manifests/init.pp b/manifests/init.pp
index a1287ba..ab642c6 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -11,4 +11,27 @@ class terminalegress {
     sshkeytype => 'ssh-ed25519',
     sshkey     => 'AAAAC3NzaC1lZDI1NTE5AAAAIM14PlReB8vWuuF2vp4XSOhxXG5HOXIO1OUB7T+9HS3W', # lint:ignore:140chars
   }
+
+  firewalld_service { 'Allow https from liu Zone':
+    ensure  => present,
+    zone    => 'liu',
+    service => 'https',
+  }
+  firewalld_service { 'Allow http from liu Zone':
+    ensure  => present,
+    zone    => 'liu',
+    service => 'http',
+  }
+
+  firewalld_service { 'Allow https from public Zone':
+    ensure  => present,
+    zone    => 'public',
+    service => 'https',
+  }
+  firewalld_service { 'Allow http from public Zone':
+    ensure  => present,
+    zone    => 'public',
+    service => 'http',
+  }
+
 }
-- 
GitLab