zuazo / dovecot-cookbook

Chef cookbook to install and configure Dovecot.
https://supermarket.chef.io/cookbooks/dovecot
Apache License 2.0
26 stars 33 forks source link

Add support for services: quota-status, quota-warning, doveadm #18

Closed ledgr closed 8 years ago

ledgr commented 8 years ago

Service description examples:

default['dovecot']['services']['doveadm'] = {
  'listeners' => [
    { 'inet:doveadm-server' => { 'port' => 3333 }
    }
  ]
}

default['dovecot']['services']['quota-status'] = {
  'executable' => 'quota-status -p postfix',
  'listeners' => [
    { 'inet:imap' => { 'port' => 4444 } }
  ]
}

default['dovecot']['services']['quota-warning'] = {
  'user' => 'dovecot',
  'executable' => 'script /usr/local/bin/quota-warning.sh',
  'listeners' => [
    { 'unix:quota-warning' => { 'user' => 'postfix' } }
  ]
}
zuazo commented 8 years ago

Hi Edgaras,

Thanks for your PR!

In addition to what I commented on the code (a tiny detail), it would be great to add those usage examples in the README :wink:

ledgr commented 8 years ago

Updated README

zuazo commented 8 years ago

It's perfect now :smiley: Thank you!

zuazo commented 8 years ago

Released in 3.0.0.