Only use multi-package on *nix

Signed-off-by: Tim Smith <tsmith@chef.io>
This commit is contained in:
Tim Smith 2020-08-26 12:03:49 -07:00
parent 88f7030d1e
commit b204ea814b

View File

@ -2,7 +2,7 @@
# Cookbook:: common
# Recipe:: default
#
# Copyright:: 2009-2019, Chef Software, Inc.
# Copyright:: 2009-2020, Chef Software, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@ -19,7 +19,14 @@
include_recipe 'postfix::_attributes'
package node['postfix']['packages']
# use multi-package when we can
if node['os'] == 'linux'
package node['postfix']['packages']
else
node['postfix']['packages'].each do |pkg|
package pkg
end
end
package 'procmail' if node['postfix']['use_procmail']