Changeset - b453b7fcb189
[Not reviewed]
0 3 0
Branko Majic (branko) - 11 years ago 2015-04-27 20:08:54
branko@majic.rs
MAR-13: Don't use Wheezy backports repository for deploying mail server. Updated package name for Emacs.
3 files changed with 3 insertions and 8 deletions:
0 comments (0 inline, 0 general)
docs/rolereference.rst
Show inline comments
 
@@ -628,16 +628,14 @@ solution, which includes both SMTP and IMAP service, on destination machine.
 

	
 
Postfix is used SMTP, while Dovecot is used for IMAP.
 

	
 
The role implements the following:
 

	
 
* Installs rsync.
 
* Adds the Wheezy backports repository.
 
* Deploys IMAP/SMTP TLS private keys and certificates.
 
* Installs and configures Dovecot (from backports), Postfix, ClamAV, and ClamAV
 
  Milter.
 
* Installs and configures Dovecot, Postfix, ClamAV, and ClamAV Milter.
 
* Purges Exim4 configuration (just in case).
 
* Installs SWAKS (utility for testing SMTP servers).
 
* Sets-up the necessary directories and files under Postfix chroot.
 
* Configures firewall to allow incoming connections to the mail server. This
 
  includes set-up of redirection from TCP port 26 to TCP port 25 (alternate SMTP
 
  to work around common network blocks).
roles/mail_server/tasks/main.yml
Show inline comments
 
---
 

	
 
- name: Install rsync
 
  apt: name="rsync" state=installed
 

	
 
- name: Add backports repository
 
  apt_repository: repo="deb http://http.debian.net/debian wheezy-backports main" state=present
 

	
 
- name: Install Dovecot packages
 
  apt: name="{{ item }}" state=installed default_release="wheezy-backports"
 
  apt: name="{{ item }}" state=installed
 
  with_items:
 
    - dovecot-imapd
 
    - dovecot-ldap
 
    - dovecot-sieve
 
    - dovecot-managesieved
 

	
testsite/group_vars/all.yml
Show inline comments
 
@@ -20,13 +20,13 @@ os_groups:
 
  - name: office
 
    gid: 2000
 
  - name: developer
 
    gid: 2001
 

	
 
common_packages:
 
  - emacs23-nox
 
  - emacs24-nox
 
  - screen
 
  - debconf-utils
 

	
 
ca_certificates:
 
  - "{{ inventory_dir }}/tls/example_ca_chain.pem"
 

	
0 comments (0 inline, 0 general)