diff options
author | Mofassir Arif <Mofassir_arif@dellteam.com> | 2015-12-16 02:25:51 -0800 |
---|---|---|
committer | Mofassir Arif <Mofassir_arif@dellteam.com> | 2015-12-16 02:46:30 -0800 |
commit | d90f2b8fa54ca7b363eb75e321db768569a3ecd8 (patch) | |
tree | adbc633af741af5e1588f3e09e10d22f1dc5a939 /func/driver.py | |
parent | ae3870b6863604d39bd15b0212bcf2694076a034 (diff) |
Removed Root previlages
QTIP now uses a key of its own to ssh into VMs
The ssh for the baremetal servers still needs work
Change-Id: I1aa37e07c4f9b3f7f4902d16cdbf74f39eb6c698
Signed-off-by: Mofassir Arif <Mofassir_arif@dellteam.com>
Conflicts:
.gitignore
Diffstat (limited to 'func/driver.py')
-rw-r--r-- | func/driver.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/func/driver.py b/func/driver.py index 83e64a80..318c67b3 100644 --- a/func/driver.py +++ b/func/driver.py @@ -28,7 +28,7 @@ class Driver: self.dic_json['Dest_dir'] = str(result_dir) self.dic_json['ip1']='' self.dic_json['ip2']='' - + for k,v in benchmark_detail: self.dic_json[k]=v for k, v in roles: @@ -43,8 +43,8 @@ class Driver: index= index+1 dic_json = json.dumps(dict(self.dic_json.items())) print dic_json - run_play = 'ansible-playbook -s ./benchmarks/playbooks/{0} --extra-vars \'{1}\' -vvv'.format(benchmark_name, dic_json) + run_play = 'ansible-playbook -s ./benchmarks/playbooks/{0} --private-key=./data/QtipKey -i ./data/hosts --extra-vars \'{1}\' '.format(benchmark_name, dic_json) # run_play = 'ansible-playbook -s $PWD/benchmarks/playbooks/{0} --extra-vars "Dest_dir={1} role={2}" -vvv'.format( # benchmark_name, result_dir, k) status = os.system(run_play) - + |