From e6bf7b4b32d477352cf45b4b0abb6993d524f78a Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Wed, 18 Jun 2014 10:16:41 +0000 Subject: Add Ansible scripts --- ansible/roles/trove-setup/tasks/lorry-setup.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ansible/roles/trove-setup/tasks/lorry-setup.yml (limited to 'ansible/roles/trove-setup/tasks/lorry-setup.yml') 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) -- cgit v1.2.1