summaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authorMofassirArif <mofassir.arif@xflowresearch.com>2016-01-29 04:28:05 -0800
committerMofassirArif <mofassir.arif@xflowresearch.com>2016-01-29 04:28:05 -0800
commit96da743d9d8fbf2245a27fbbce703bc3c55dbdda (patch)
tree6cd42f74fc6c37ac71c0787d1ec563beb3294761 /benchmarks
parent430de381cf2b7be60c50ac41202857de43c12921 (diff)
qtip: compass dependencies
Change-Id: Id4be468c5a1cef6d9b887f1114eab5af808455af Signed-off-by: MofassirArif <mofassir.arif@xflowresearch.com>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/playbooks/iperf.yaml2
-rw-r--r--benchmarks/playbooks/sys_info_pbook.yaml33
2 files changed, 27 insertions, 8 deletions
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml
index f139ff61..ce2ffb6d 100644
--- a/benchmarks/playbooks/iperf.yaml
+++ b/benchmarks/playbooks/iperf.yaml
@@ -55,7 +55,7 @@
when: iptable_entry != '' and installertype == 'fuel'
- name: Installing IPERF when Ubuntu
shell: apt-get install iperf3 -y
- when: ansible_os_family == "Debian" and rolename == '1-server'
+ when: ansible_os_family == "Debian"
- name: Installing Iperf3
shell: yum install iperf3 -y
when: ansible_os_family == "RedHat"
diff --git a/benchmarks/playbooks/sys_info_pbook.yaml b/benchmarks/playbooks/sys_info_pbook.yaml
index b5415aad..bc47423f 100644
--- a/benchmarks/playbooks/sys_info_pbook.yaml
+++ b/benchmarks/playbooks/sys_info_pbook.yaml
@@ -1,25 +1,44 @@
- name: Epel Release install when CentOS
- shell: yum install epel-release -y
+ shell: sudo yum install epel-release -y
when: ansible_os_family == "RedHat"
+
- name: Inxi install when CentOS
- shell: yum install inxi -y
+ shell: sudo yum install inxi -y
when: ansible_os_family == "RedHat"
+
+ - name: Software Properties Common
+ shell: sudo apt-get install software-properties-common -y
+ when: ansible_os_family == "Debian"
+
+ - name: adding trusty-backport main repo
+ shell: sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse"
+ when: ansible_os_family == "Debian"
+
+ - name: adding trusty main repo
+ shell: sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu/ trusty main restricted universe multiverse"
+ when: ansible_os_family == "Debian"
+
- name: system info collection tool install when Ubuntu
- shell: apt-get update && apt-get install inxi -y
+ shell: sudo apt-get update && apt-get install inxi -y
when: ansible_os_family == "Debian"
+
- name: Install ansible copy dependencies if remote host has selinux enabled
- shell: yum install libselinux-python -y
+ shell: sudo yum install libselinux-python -y
when: ansible_os_family == "RedHat"
+
- name: Install ansiblle copy dependencies if remote host has selinux enaled
- shell: apt-get install python-selinux -y
+ shell: sudo apt-get install python-selinux -y
when: ansible_os_family == "Debian"
+
- name: system_info script copy
copy: src=./info_script/info_collect.py dest={{home_dir.stdout}}/qtip_result/
+
- name: collecting system informaton for non-network test cases
- shell: cd $HOME/qtip_result && python info_collect.py c
+ shell: cd $HOME/qtip_result && sudo python info_collect.py c
when: not network
+
- name: collecting system information for network test cases
- shell: cd $HOME/qtip_result && python info_collect.py n
+ shell: cd $HOME/qtip_result && sudo python info_collect.py n
when: network