From 905d7e1777fec1c48d424270153dbccce77459a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Arkadiusz=20Dzi=C4=99giel?= <arkadiusz.dziegiel@glorpen.pl>
Date: Sun, 20 May 2018 11:22:49 +0200
Subject: [PATCH] added support for Alpine Linux

---
 manifests/params.pp | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/manifests/params.pp b/manifests/params.pp
index d085b1b..00dd79a 100644
--- a/manifests/params.pp
+++ b/manifests/params.pp
@@ -53,7 +53,21 @@ class postfix::params {
     }
 
     default: {
-      fail "Unsupported OS family '${::osfamily}'"
+      case $::operatingsystem {
+        'Alpine': {
+            $aliasesseltype = undef
+            $seltype = undef
+
+            $restart_cmd = '/etc/init.d/postfix reload'
+
+            $mailx_package = 'mailx'
+
+            $master_os_template = "${module_name}/master.cf.debian.erb"
+        }
+        default: {
+          fail "Unsupported OS family '${::osfamily}' and OS '${::operatingsystem}'"
+        }
+      }
     }
   }
 }
-- 
GitLab