diff --git a/attributes/default.rb b/attributes/default.rb index 16677b0..39f6730 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 37acc31..354dcec 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']