onddo/dovecot-cookbook

View on GitHub
templates/default/conf.d/15-replication.conf.erb

Summary

Maintainability
Test Coverage
# Generated by Chef

# This file will contain replication settings in case of a replicated
# master/master dovecot setup

<% if @services['replicator'].kind_of?(Hash) and @services['replicator'].length > 0 -%>
<%=  DovecotCookbook::Conf.service('replicator', @services['replicator']) %>
<% end -%>

<% if @services['aggregator'].kind_of?(Hash) and @services['aggregator'].length > 0 -%>
<%=  DovecotCookbook::Conf.service('aggregator', @services['aggregator']) %>
<% end -%>

<% if @services['config'].kind_of?(Hash) and @services['config'].length > 0 -%>
<%=  DovecotCookbook::Conf.service('config', @services['config']) %>
<% end -%>

#Doveadm port and password for replication
<%= DovecotCookbook::Conf.attribute(@conf, 'doveadm_port', 3333) %>
<%= DovecotCookbook::Conf.attribute(@conf, 'doveadm_password', 'secret') %>