From e31df0cded5b5f598088ac1b53287887464f8561 Mon Sep 17 00:00:00 2001 From: Ossi Herrala Date: Thu, 13 Dec 2012 12:00:12 +0000 Subject: [PATCH] Put $ostype variable to sendmail::common so it's inherited to other classes. --- sendmail/manifests/init.pp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sendmail/manifests/init.pp b/sendmail/manifests/init.pp index 83479b0..1bf514d 100644 --- a/sendmail/manifests/init.pp +++ b/sendmail/manifests/init.pp @@ -28,6 +28,10 @@ class sendmail::common { mode => "0644", notify => Service["sendmail"], } + $ostype = "linux" + } + "openbsd": { + $ostype = "openbsd" } } @@ -164,7 +168,6 @@ class sendmail::server inherits sendmail::common { File["/etc/sysconfig/sendmail"] { content => "DAEMON=yes\nQUEUE=1h\n", } - $ostype = "linux" # For Sendmail's OSTYPE macro } default: { fail("sendmail::server not supported in '${::operatingsystem}'")