Implement ansible driver 79/29779/7
authorwu.zhihui <wu.zhihui1@zte.com.cn>
Sat, 4 Mar 2017 12:33:22 +0000 (20:33 +0800)
committerwu.zhihui <wu.zhihui1@zte.com.cn>
Wed, 8 Mar 2017 10:03:15 +0000 (18:03 +0800)
commitb8b2d5e8de33f314a76e7a2ff2385befeafd4cc3
tree64c44ff820ff6b02cbb76804ec5f9204704a2e87
parentde5c51ecba1e74a4c9c201155b0a4f129e38efad
Implement ansible driver

- According to inputs parameters, setup test environment. If failed
during setupping, qtip will exited. If successful, execute metric
tests.
- Parameters(optional):
* keypair: the keypair to login/execute commands to the remote
  hosts. They can be automatically generated.
* hostfile: a inventory file. If not give, it can be
  automatically generated via installer.
* args: the parameters passed to playbook
- Use ansible python api to trigger ansible-playbook.

Unit test will be in a new patch.

Change-Id: I7470d348308f7cb6cb669bcc49063cf0f4da2111
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
qtip/driver/ansible.py [deleted file]
qtip/driver/ansible_api.py [new file with mode: 0644]
qtip/driver/ansible_driver.py [new file with mode: 0644]