Fix output path 07/41507/2
authorYujun Zhang <zhang.yujunz@zte.com.cn>
Mon, 11 Sep 2017 07:19:15 +0000 (15:19 +0800)
committerYujun Zhang <zhang.yujunz@zte.com.cn>
Fri, 15 Sep 2017 05:48:37 +0000 (05:48 +0000)
Change-Id: Ib3e5a310a561d9fdd11b503058ada4e937189a9d
Signed-off-by: Yujun Zhang <zhang.yujunz@zte.com.cn>
resources/ansible_roles/ceph-info/tasks/cache.yml
resources/ansible_roles/qtip-generator/files/storage/run.yml

index 7e29a32..a60c7c0 100644 (file)
@@ -9,11 +9,11 @@
 
 - fetch:
     src: /etc/ceph/ceph.conf
-    dest: "{{ qtip_results }}/sysinfo-{{ inventory_hostname }}/"
+    dest: "{{ output }}/"
     flat: yes
 
 - name: collect ceph catch info from ceph.conf
-  set_fact: {"{{ item }}":"{{ lookup('ini', '{{ item }} section=client default='' file={{ qtip_results }}/sysinfo-{{ inventory_hostname }}/ceph.conf')  }}"}
+  set_fact: {"{{ item }}":"{{ lookup('ini', '{{ item }} section=client default='' file={{ output }}/ceph.conf')  }}"}
   with_items:
       - rbd_cache
       - rbd_cache_max_dirty
index 5fdf72f..1ddf0b5 100644 (file)
 - hosts: localhost
 
   roles:
-  # prepare local environment
-  - { role: qtip, tasks: setup-local, tags: [setup] }
-  - storperf
+    - { role: qtip, tasks: setup-local, tags: [setup] }
+    - { role: storperf, output: "{% raw %}{{ qtip_results }}{% endraw %}/storperf" }
 
 - hosts: SUT
   roles:
-    - ceph-info
+    - { role: qtip, tasks: setup-node, tags: [setup] }
+    - { role: ceph-info, output: "{% raw %}{{ qtip_results }}{% endraw %}/ceph-info" }