summaryrefslogtreecommitdiff
path: root/ansible/roles/trove-setup/tasks/lorry-setup.yml
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-07-14 15:10:09 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2014-07-14 15:10:09 +0000
commit160fd3f2f1d372751836c0073bdc944df1cfbb91 (patch)
treed6b46ce1ec600400883e53b82e12b390fa73f262 /ansible/roles/trove-setup/tasks/lorry-setup.yml
parenteafba37e2bfc3897e3e7f65f2ce087fbee358f43 (diff)
parentd349c9a35d3d53ebfc9f26df373e84fa5986a1b6 (diff)
downloadtrove-setup-160fd3f2f1d372751836c0073bdc944df1cfbb91.tar.gz
Merge branch 'baserock/pedroalvarez/trove-ansible3'
Reviewed-by: Richard Maw Reviewed-by: Lars Wirzenius
Diffstat (limited to 'ansible/roles/trove-setup/tasks/lorry-setup.yml')
-rw-r--r--ansible/roles/trove-setup/tasks/lorry-setup.yml20
1 files changed, 20 insertions, 0 deletions
diff --git a/ansible/roles/trove-setup/tasks/lorry-setup.yml b/ansible/roles/trove-setup/tasks/lorry-setup.yml
new file mode 100644
index 0000000..c50b49d
--- /dev/null
+++ b/ansible/roles/trove-setup/tasks/lorry-setup.yml
@@ -0,0 +1,20 @@
+# Depends on:
+# - users.yml
+---
+- name: Create bundles and tarballs folder for the lorry user
+ file: path=/home/lorry/{{ item }} state=directory owner=lorry group=lorry
+ with_items:
+ - bundles
+ - tarballs
+# Following the same strategy as explained in gitano-setup.yml, use
+# templates recursively over directories.
+# Create the directories needed to copy the files
+- name: Create directories needed in /etc for the lorry configuration
+ file: path=/etc/{{ item }} state=directory
+ with_lines:
+ - (cd /usr/share/trove-setup/etc && find -type d)
+# Copy all the files to the right place and fill the templates whenever possible
+- name: Add the configuration needed for lorry in /etc using templates
+ template: src=/usr/share/trove-setup/etc/{{ item }} dest=/etc/{{ item }}
+ with_lines:
+ - (cd /usr/share/trove-setup/etc && find -type f)