From 13741814f1098badf0816d05250a0feb1dac4b1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgaras=20Luko=C5=A1evi=C4=8Dius?= Date: Wed, 23 May 2018 13:14:02 +0300 Subject: [PATCH] Add `packages` attribute so different postfix packages can be installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Edgaras Lukoševičius --- attributes/default.rb | 2 ++ recipes/_common.rb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/attributes/default.rb b/attributes/default.rb index 16677b09..39f67308 100644 --- a/attributes/default.rb +++ b/attributes/default.rb @@ -14,6 +14,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +default['postfix']['packages'] = %w[postfix] + # Generic cookbook attributes default['postfix']['mail_type'] = 'client' default['postfix']['relayhost_role'] = 'relayhost' diff --git a/recipes/_common.rb b/recipes/_common.rb index 37acc318..354dcec9 100644 --- a/recipes/_common.rb +++ b/recipes/_common.rb @@ -19,7 +19,7 @@ include_recipe 'postfix::_attributes' -package 'postfix' +package node['postfix']['packages'] package 'procmail' if node['postfix']['use_procmail']