summaryrefslogtreecommitdiff
path: root/baserock_openid_provider/instance-config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'baserock_openid_provider/instance-config.yml')
-rw-r--r--baserock_openid_provider/instance-config.yml46
1 files changed, 0 insertions, 46 deletions
diff --git a/baserock_openid_provider/instance-config.yml b/baserock_openid_provider/instance-config.yml
deleted file mode 100644
index a0dd059e..00000000
--- a/baserock_openid_provider/instance-config.yml
+++ /dev/null
@@ -1,46 +0,0 @@
-# Instance configuration for Baserock OpenID provider.
-#
-# This playbook should be run after starting an instance of the Baserock
-# OpenID Provider image.
----
-- hosts: openid
- gather_facts: False
- sudo: yes
- tasks:
- - name: install database password
- copy:
- content: "{{ lookup('file', '../baserock_database/baserock_openid_provider.database_password.yml') }}"
- dest: /etc/baserock_openid_provider.database_password.yml
- owner: cherokee
- group: cherokee
- mode: 400
-
- - name: install Django secret key
- copy:
- content: "{{ lookup('file', 'baserock_openid_provider.secret_key.yml') }}"
- dest: /etc/baserock_openid_provider.secret_key.yml
- owner: cherokee
- group: cherokee
- mode: 400
-
- # This step could be part of image creation, except that because the secret
- # key file wouldn't be available at that time, the 'manage.py' script would
- # fail to run.
- - name: install static content
- django_manage: app_path=/srv/baserock_openid_provider command=collectstatic
- sudo_user: cherokee
-
- - name: run database migrations
- django_manage: app_path=/srv/baserock_openid_provider command=migrate
- sudo_user: cherokee
-
- # Default configuration of Sendmail in Fedora is to only accept connections from
- # localhost. This is what we want, so no extra config required.
- - name: enable and start sendmail service
- service: name=sendmail enabled=yes state=started
-
- - name: enable and start Cherokee service
- service: name=cherokee enabled=yes state=restarted
-
- - name: enable and start ntpd service
- service: name=ntpd enabled=yes state=restarted