From 6306e71ca9a9f49fd55c23f4e0c4f67230d63841 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Herv=C3=A9=20=20MENAGER?= <herve.menager@pasteur.fr>
Date: Tue, 12 Sep 2017 13:13:17 +0200
Subject: [PATCH] test to add a host-specific django settings file

Former-commit-id: 2aa46231fbab9d901fe2060f2b7cea4fca580bd4
---
 ansible/deploy.yaml | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ansible/deploy.yaml b/ansible/deploy.yaml
index 7ae4e30b..7aaea533 100644
--- a/ansible/deploy.yaml
+++ b/ansible/deploy.yaml
@@ -71,15 +71,18 @@
       django_manage:
         command: "collectstatic"
         app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
+        settings: "ippisite.{{ ansible_nodename }}_settings"
     - name: create mod_wsgi configuration
       django_manage:
         command: "runmodwsgi --setup-only --port=80 --user ippidb --group wheel --server-root=/etc/ippidb-80"
         app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
+        settings: "ippisite.{{ ansible_nodename }}_settings"
     - name: create or update database
       become_user: "{{ deploy_user_name }}"
       django_manage:
         command: "migrate"
         app_path: "/home/{{ deploy_user_name }}/iPPIDB/ippisite"
+        settings: "ippisite.{{ ansible_nodename }}_settings"
     # FIXME: this should obviously be removed before switching to prod. env.
     - name: restrict access to the web server to specific IPs
       lineinfile: dest=/etc/ippidb-80/httpd.conf 
-- 
GitLab