summaryrefslogtreecommitdiffstats
path: root/util/docker-compose/roles/compass/templates/prepare_ansible.sh.j2
diff options
context:
space:
mode:
Diffstat (limited to 'util/docker-compose/roles/compass/templates/prepare_ansible.sh.j2')
-rwxr-xr-xutil/docker-compose/roles/compass/templates/prepare_ansible.sh.j28
1 files changed, 8 insertions, 0 deletions
diff --git a/util/docker-compose/roles/compass/templates/prepare_ansible.sh.j2 b/util/docker-compose/roles/compass/templates/prepare_ansible.sh.j2
new file mode 100755
index 00000000..e0de1253
--- /dev/null
+++ b/util/docker-compose/roles/compass/templates/prepare_ansible.sh.j2
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+for i in `ls {{ compass_adapter_dir }}/ansible | grep "openstack_"`; do
+ mkdir -p {{ docker_compose_dir }}/ansible/$i
+ cp -rf {{ compass_adapter_dir }}/ansible/openstack/* {{ docker_compose_dir }}/ansible/$i
+ cp -rf {{ compass_adapter_dir }}/ansible/$i {{ docker_compose_dir }}/ansible/
+done
+cp -rf {{ compass_adapter_dir }}/ansible/roles {{ docker_compose_dir }}/ansible/