aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-02-07 18:39:24 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2014-02-07 18:39:24 +0100
commit45bc339348d17a9936f94996f33213201926ee36 (patch)
tree464b1ff45e237fe703baccbd543f67f0f2cfbfb4
parent7b50f1723baa4eac1dd086e1efe52a9d43582c6d (diff)
Updated hosts file with new variable.
Change-Id: I076e5f3707dbd9ff261f3c8fb7f17874fadb359a
-rw-r--r--ansible/hosts18
1 files changed, 15 insertions, 3 deletions
diff --git a/ansible/hosts b/ansible/hosts
index dd5fb49..ab33da4 100644
--- a/ansible/hosts
+++ b/ansible/hosts
@@ -1,3 +1,15 @@
-[all]
-staging.status.linaro.org ansible_ssh_user=ubuntu role=staging install_dir=staging.status.linaro.org
-status.linaro.org ansible_ssh_user=ubuntu role=production install_dir=status.linaro.org
+# Info on the variables here defined:
+# role: if 'production' or 'staging'
+# install_dir: where to install the application code
+# wsgi_name: name of the wsgi script for the application
+# wsgi_daemon: name of the daemon associated with the application
+# site_function: if 'status' or 'roadmap'
+# site_name: the actual name of the website
+#
+[staging]
+staging.status.linaro.org ansible_ssh_user=ubuntu role=staging install_dir=staging.status.linaro.org wsgi_name=staging.status.linaro.org.wsgi wsgi_daemon=staging.status.linaro.org site_function=status site_name=staging.status.linaro.org
+staging.roadmap.linaro.org ansible_ssh_user=ubuntu role=staging install_dir=staging.status.linaro.org wsgi_name=staging.status.linaro.org.wsgi wsgi_daemon=staging.roadmap.linaro.org site_function=roadmap site_name=staging.roadmap.linaro.org
+
+[production]
+status.linaro.org ansible_ssh_user=ubuntu role=production install_dir=status.linaro.org wsgi_name=status.linaro.org.wsgi wsgi_daemon=status.linaro.org site_function=status site_name=status.linaro.org
+roadmap.linaro.org ansible_ssh_user=ubuntu role=production install_dir=status.linaro.org wsgi_name=status.linaro.org.wsgi wsgi_daemon=roadmap.linaro.org site_function=roadmap site_name=roadmap.linaro.org