aboutsummaryrefslogtreecommitdiff
path: root/ansible/roles/install-app
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2014-08-01 16:32:20 +0200
committerMilo Casagrande <milo.casagrande@linaro.org>2014-08-01 16:32:20 +0200
commitc2383e2e9309a0b730325a463dd03f12c7ebe8fc (patch)
tree24e84b6128111b335dce72c7ea1d1d94b7cad33b /ansible/roles/install-app
parentf4ca64ad818eb064af3e09209f7c5096c4596a74 (diff)
Ansible playbook update.
* Update ansible playbook to deply backend configuration file. By default installed in /etc/linaro. * The master_key variable needs to be set to a valid value and needs to be loaded from an external file or passed from the command line. Change-Id: I2f67394447ad102e3508f56b8199bf80ffaff768
Diffstat (limited to 'ansible/roles/install-app')
-rw-r--r--ansible/roles/install-app/tasks/main.yml16
-rw-r--r--ansible/roles/install-app/templates/kernelci-backend.cfg6
2 files changed, 22 insertions, 0 deletions
diff --git a/ansible/roles/install-app/tasks/main.yml b/ansible/roles/install-app/tasks/main.yml
index addd2a5..6dd6eb7 100644
--- a/ansible/roles/install-app/tasks/main.yml
+++ b/ansible/roles/install-app/tasks/main.yml
@@ -50,3 +50,19 @@
tags:
- install
- app
+
+- name: Does /etc/linaro exists?
+ file: path=/etc/linaro
+ state=directory
+ owner=root
+ group=root
+ tags:
+ - install
+ - app
+
+- name: Install configuration file
+ template: src=kernelci-backend.cfg
+ dest=/etc/linaro/kernelci-backend.cfg
+ owner=root
+ group=root
+ mode=0644 \ No newline at end of file
diff --git a/ansible/roles/install-app/templates/kernelci-backend.cfg b/ansible/roles/install-app/templates/kernelci-backend.cfg
new file mode 100644
index 0000000..d581482
--- /dev/null
+++ b/ansible/roles/install-app/templates/kernelci-backend.cfg
@@ -0,0 +1,6 @@
+master_key = '{{ master_key }}'
+{% if role == "staging" %}
+debug = True
+{% else %}
+debug = False
+{% endif %}