aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/playbooks
diff options
context:
space:
mode:
authorMofassirArif <Mofassir_Arif@dellteam.com>2016-01-18 03:21:00 -0800
committerMofassirArif <Mofassir_Arif@dellteam.com>2016-01-18 03:21:00 -0800
commit254ebb0efff73faa2285cf9f1ce70298a9787cb0 (patch)
treef1db3134cc453762dec3b9fe347b2f017b6c8dc5 /benchmarks/playbooks
parent28258ccf7196e24ad53617edb14c344ff63130fb (diff)
bug fix: make installer specific changes for baremetal. cater
for fuel Change-Id: Ie8c233873041238e3fc1aaaa653653552c7c7428 Signed-off-by: MofassirArif <Mofassir_Arif@dellteam.com>
Diffstat (limited to 'benchmarks/playbooks')
-rw-r--r--benchmarks/playbooks/iperf.yaml6
1 files changed, 5 insertions, 1 deletions
diff --git a/benchmarks/playbooks/iperf.yaml b/benchmarks/playbooks/iperf.yaml
index feef9369..fdf22c94 100644
--- a/benchmarks/playbooks/iperf.yaml
+++ b/benchmarks/playbooks/iperf.yaml
@@ -17,6 +17,9 @@
set_fact:
rolename: "{{role}}"
when: role is defined
+ - name: installertype
+ set_fact:
+ installertype: "{{installer}}"
- name: Get Hostname
shell: echo $HOSTNAME
register: hostID
@@ -43,10 +46,11 @@
shell: iptables -L INPUT --line-number | grep DROP | awk '{print $1}'
register: iptable_entry
ignore_errors: yes
+ when: installertype == 'fuel'
- name: Removing entry number
shell: iptables -D INPUT {{iptable_entry.stdout}}
ignore_errors: yes
- when: iptable_entry != ''
+ 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'