Files @ 71bc6c4991f8
Branch filter:

Location: majic-ansible-roles/testsite/mutt/jane.doe - annotation

branko
MAR-132: Fix virtual environment set-up in wsgi_website role:

- Install more up-to-date version of pip. This fixes some issues
related to pip freeze detecting argparse and wsgiref in virtualenv
as separate packages.
- Remove the pkg-resources package from virtualenv. Workaround for
Debian-specific behaviour. More details at:
- https://github.com/pypa/pip/issues/4022
- https://bugs.launchpad.net/ubuntu/+source/python-pip/+bug/1635463
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871790
- Deploy Gunicorn requirements file without switching to website admin
user (otherwise Ansible fails to template the file due to
permissions restrictions).
- Updated test for checking packages installed in the virtualenv.
# Set some general user information.
set realname = "Jane Doe"
set from = "jane.doe@example.com"
set envelope_from = yes

# Configure IMAP.
set imap_user = "jane.doe@example.com"
set imap_pass = "janedoe"
set folder = imap://mail.example.com/

# Default mailboxes.
set spoolfile = "=INBOX"
set record = "=Sent Items"
set postponed = "=Drafts"

# Configure SMTP.
set smtp_url = smtp://jane.doe@example.com@mail.example.com:587/
set smtp_pass = $imap_pass

# Configure TLS.
set ssl_ca_certificates_file = tls/ca.pem

# Configure convenient shortcut for fetching new mail.
bind index G imap-fetch-mail

# Configure various paths explicitly to prevent them from clashing
# with user's system-wide files.
set alias_file = mutt/jane.doe-files/config
set certificate_file = mutt/jane.doe-files/certificates
set folder = mutt/jane.doe-files/mail
set history_file = mutt/jane.doe-files/history
set mbox = mutt/jane.doe-files/mbox
set news_cache_dir = mutt/jane.doe-files/news_cache
set newsrc = mutt/jane.doe-files/newsrc
set postponed = mutt/jane.doe-files/postponed
set record = mutt/jane.doe-files/record
set signature = mutt/jane.doe-files/signature