summaryrefslogtreecommitdiff
path: root/README.mdwn
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-05 15:47:27 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-12-05 15:49:32 +0000
commit39bfb29f6c8c7c7562422fcf5edf8a109675572b (patch)
tree27b0cf91f40dbf55213cb8a4952c0f0920e3a6bc /README.mdwn
parent80e3d16a49716aca7ad5008d22b2ebbd85f59afb (diff)
downloadinfrastructure-39bfb29f6c8c7c7562422fcf5edf8a109675572b.tar.gz
openid_provider: Use MariaDB instead of the default SQLite database
Diffstat (limited to 'README.mdwn')
-rw-r--r--README.mdwn31
1 files changed, 31 insertions, 0 deletions
diff --git a/README.mdwn b/README.mdwn
index a7e277e2..1a55504d 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -47,6 +47,11 @@ Also, you must create or have access to an Ansible playbook which will set up
the user accounts. For development deployments you can use the 'develop.sh'
script which sets up all the necessary accounts using dummy passwords.
+To deploy a development instance:
+
+ packer build -only=development database/packer_template.json
+ database/develop.sh
+
To deploy this system to production:
packer build -only=production database/packer_template.json
@@ -74,6 +79,32 @@ To deploy this system to production:
# edit 'hosts' line of database/user_accounts.yml to point to the server's IP
ansible-playbook database/user_accounts.yml
+ nova floating-ip-disassociate database-mariadb <some floating IP>
+
+OpenID provider
+---------------
+
+To deploy a development instance:
+
+ packer build -only=development baserock_openid_provider/packer_template.json
+ baserock_openid_provider/develop.sh
+ # Now you have a root shell inside your container
+ cd /srv/baserock_openid_provider
+ python ./manage.py runserver 0.0.0.0:80
+ # Now you can browse to http://localhost:80/ and see the server.
+
+To deploy this system to production:
+
+ vim baserock_openid_provider/baserock_openid_provider/settings.py
+ # Edit the DATABASES['default']['HOST'] to point to the fixed IP of
+ # the 'database' machine.
+ packer build -only=production database/packer_template.json
+ nova boot openid_provider
+
+ # Now you need to SSH into the system (via the frontend system perhaps)
+ # and run the database migrations, before the app will work:
+ python /srv/baserock_openid_provider/manage.py migrate
+
Deployment to DataCentred
-------------------------