Add packages attribute so different postfix packages can be installed

Signed-off-by: Edgaras Lukoševičius <edgaras.lukosevicius@gmail.com>
This commit is contained in:
Edgaras Lukoševičius 2018-05-23 13:14:02 +03:00
parent 07a56800da
commit 13741814f1
2 changed files with 3 additions and 1 deletions

View File

@ -14,6 +14,8 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
default['postfix']['packages'] = %w[postfix]
# Generic cookbook attributes # Generic cookbook attributes
default['postfix']['mail_type'] = 'client' default['postfix']['mail_type'] = 'client'
default['postfix']['relayhost_role'] = 'relayhost' default['postfix']['relayhost_role'] = 'relayhost'

View File

@ -19,7 +19,7 @@
include_recipe 'postfix::_attributes' include_recipe 'postfix::_attributes'
package 'postfix' package node['postfix']['packages']
package 'procmail' if node['postfix']['use_procmail'] package 'procmail' if node['postfix']['use_procmail']