Put $ostype variable to sendmail::common so it's inherited to other classes.
This commit is contained in:
parent
bebab0aba6
commit
e31df0cded
1 changed files with 4 additions and 1 deletions
|
@ -28,6 +28,10 @@ class sendmail::common {
|
||||||
mode => "0644",
|
mode => "0644",
|
||||||
notify => Service["sendmail"],
|
notify => Service["sendmail"],
|
||||||
}
|
}
|
||||||
|
$ostype = "linux"
|
||||||
|
}
|
||||||
|
"openbsd": {
|
||||||
|
$ostype = "openbsd"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +168,6 @@ class sendmail::server inherits sendmail::common {
|
||||||
File["/etc/sysconfig/sendmail"] {
|
File["/etc/sysconfig/sendmail"] {
|
||||||
content => "DAEMON=yes\nQUEUE=1h\n",
|
content => "DAEMON=yes\nQUEUE=1h\n",
|
||||||
}
|
}
|
||||||
$ostype = "linux" # For Sendmail's OSTYPE macro
|
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
fail("sendmail::server not supported in '${::operatingsystem}'")
|
fail("sendmail::server not supported in '${::operatingsystem}'")
|
||||||
|
|
Loading…
Add table
Reference in a new issue