summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-26 11:26:46 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-26 11:28:11 +0000
commitb3ac2c135c78cfe998f7524d784d691c81557f29 (patch)
tree17a9ab7aa1a84248ee4c389929b28ffe77e606d6
parent7a1db64930b2f5373cb7145783cb6afd17acd855 (diff)
downloadinfrastructure-b3ac2c135c78cfe998f7524d784d691c81557f29.tar.gz
openid_provider: Install sendmail
Thus we can send emails.
-rw-r--r--baserock_openid_provider/local.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/baserock_openid_provider/local.yml b/baserock_openid_provider/local.yml
index 536c8e8b..a09d03ba 100644
--- a/baserock_openid_provider/local.yml
+++ b/baserock_openid_provider/local.yml
@@ -12,6 +12,9 @@
- name: install PIP package manager
yum: name=python-pip state=latest
+ - name: install Sendmail mail transfer agent
+ yum: name=sendmail state=latest
+
- name: install uWSGI application container server and Python plugin
yum: name=uwsgi-plugin-python state=latest
@@ -47,3 +50,8 @@
- name: install static content
django_manage: app_path=/srv/baserock_openid_provider command=collectstatic
+
+ # Default configuration of Sendmail in Fedora is to only accept connections from
+ # localhost. This is what we want.
+ - name: enable and start sendmail service
+ service: name=sendmail enabled=yes state=started