summaryrefslogtreecommitdiffstats
path: root/benchmarks/playbooks/cachebench.yaml
diff options
context:
space:
mode:
authorwu.zhihui <wu.zhihui1@zte.com.cn>2016-09-09 13:16:09 +0800
committerzhihui wu <wu.zhihui1@zte.com.cn>2016-09-11 04:01:38 +0000
commit43501355cf6974ee9ee36ca22c1113d80acffc7d (patch)
tree2236e14f13b2afd990aa26e0dd24d55052bed377 /benchmarks/playbooks/cachebench.yaml
parent3a987ca748287d250d7975a853222917f001469a (diff)
ansible playbook bugfix
According the qtip ci results, make these bugfixs. 1. skipping: no hosts matched This used to work in Ansible 1.9.x with 127.0.0.1;But does not work in Asible 2.x solved: add 127.0.0.1 as localhost in ./data/hosts 2. Using bare variables is deprecated. solved: update playbook 3. use git module 4. To save time, turning Off Facts on localhost. Since https://gerrit.opnfv.org/gerrit/#/c/20661/ is under codereview, for qtip ci job, I temporarily modify function write_to_file() in env_setup.py. Change-Id: I71a08ebf87cd8c8d851a3f8f760e29e8725f0e0f Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'benchmarks/playbooks/cachebench.yaml')
-rw-r--r--benchmarks/playbooks/cachebench.yaml23
1 files changed, 17 insertions, 6 deletions
diff --git a/benchmarks/playbooks/cachebench.yaml b/benchmarks/playbooks/cachebench.yaml
index ebd0e172..ca9a709c 100644
--- a/benchmarks/playbooks/cachebench.yaml
+++ b/benchmarks/playbooks/cachebench.yaml
@@ -1,4 +1,3 @@
-
- hosts: "{{ roles }}"
tasks:
@@ -7,32 +6,44 @@
shell: rm -rf /usr/share/doc/phoronix-test-suite/
shell: rm -rf /usr/share/phoronix-test-suite
shell: rm -rf /root/photmp/
+
- name: cleaning results
file: path=/root/results state=absent
+
- name: make direc
file: path=/root/photmp/ state=directory
- - name: Fetch Phornonix
+
+ - name: Fetch Phornonix
shell: cd /root/photmp/ && wget https://www.dropbox.com/s/5kks513ozxy7vvs/phoronix-suite.tar.gz
+
- name: unarchive Phoronix
shell: cd /root/photmp/ && tar -zxvf phoronix-suite.tar.gz
+
- name: Install Phornonix Dependencies
shell: yum install php php-xml php-client php-process -y
+
- name: Install Phornonix
- shell: cd /root/photmp/phoronix-test-suite-master/&&./install-sh
+ shell: cd /root/photmp/phoronix-test-suite-master/&&./install-sh
+
- name: batchSetup
shell: phoronix-test-suite batch-setup
+
- name: install
shell: phoronix-test-suite batch-install cachebench
+
- name: run
- shell: phoronix-test-suite batch-run cachebench
+ shell: phoronix-test-suite batch-run cachebench
+
- name: making directory
file: path=/root/results state=directory
+
- name: copying result to temp directory
shell: cp -r /var/lib/phoronix-test-suite/test-results/* /root/results/
+
- name: registering files
shell: (cd /root/results/; find . -maxdepth 1 -type f) | cut -d'/' -f2
register: files_to_copy
+
- name: copy results
fetch: src=/root/results/{{item}} dest={{workingdir}}/{{Dest_dir}}/cachebench
- with_items: files_to_copy.stdout_lines
-
+ with_items: "{{files_to_copy.stdout_lines}}"