diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-04-14 19:05:03 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-04-14 19:10:20 +0200 |
commit | 4a130afba58836ebb2f70a31c88588ea46017009 (patch) | |
tree | 200816c2c7525e76228559e6b0ee81dc46980c14 /vagrant_support/email.yml | |
parent | 480bbf368b485a6a0317b9356ce90b75201b3efa (diff) | |
download | bugzilla-4a130afba58836ebb2f70a31c88588ea46017009.tar.gz bugzilla-4a130afba58836ebb2f70a31c88588ea46017009.tar.xz |
Bug 1328874 - Add Vagrantfile for production-like development VMs
Diffstat (limited to 'vagrant_support/email.yml')
-rw-r--r-- | vagrant_support/email.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vagrant_support/email.yml b/vagrant_support/email.yml new file mode 100644 index 000000000..a988e240b --- /dev/null +++ b/vagrant_support/email.yml @@ -0,0 +1,32 @@ +--- + +- name: install mail packages + yum: name={{item}} state=present + with_items: ["mutt", "postfix", "dovecot"] + +- name: configure postfix + copy: + src: postfix/main.cf + dest: /etc/postfix/main.cf + +- name: redirect all email to vagrant user + copy: + src: postfix/virtual + dest: /etc/postfix/virtual + +- name: enable postfix + service: name=postfix enabled=yes + +- name: restart postfix + service: name=postfix state=restarted + +- name: configure dovecot + template: + src: dovecot.j2 + dest: /etc/dovecot/dovecot.conf + +- name: enable dovecot + service: name=dovecot enabled=yes + +- name: restart dovecot + service: name=dovecot state=restarted |