summaryrefslogtreecommitdiffstats
path: root/snaps/provisioning/ansible_utils.py
AgeCommit message (Collapse)AuthorFilesLines
2017-10-05Increse ssh timeout in AnsibleJose Lausuch1-2/+2
The SNAPS smoke tests pass on Apex when the timeout is a bit higher than 10 (default) JIRA: SNAPS-186 Change-Id: I2f42f0fc9a78bfad4ae3940813e87ba7572ad2f5 Signed-off-by: Jose Lausuch <jalausuch@suse.com>
2017-07-17Created new class AnsibleException.spisarski1-2/+8
Raising AnsibleException in ansible_utils.py instead of Exception. JIRA: SNAPS-130 Change-Id: I72d7ea3779c9644559ae7dc4dbb26edc4da20594 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-07-06Added support for using '~' for SSH key location.spisarski1-21/+38
While testing changes, fixed problems found with querying for floating IPs which also required adding network data to the VMInst domain object. JIRA: SNAPS-85 Change-Id: I0ecf3a6885ce84fe14c4a6db09269c56dc0ad9fc Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-25Updated installation documents and fixed problems found during investigation.spisarski1-4/+7
The code changes are primarily required when the runtime environment is Windows. JIRA: SNAPS-75 Change-Id: Ia2134861dd96e1d2c4b597f42fb348929e787a51 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-05-08Modified code to support both Python 2.7 and 3.xspisarski1-2/+2
* Tested on Python 2.7.10 and 3.4.4 * Updated installation documentation JIRA: SNAPS-30 Change-Id: I94a37d218be8ea47bbbcfb560197737430fcb3ba Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-27Added Ansible substitution value support for flavor IDs, image IDs, and ↵spisarski1-7/+1
image_user values to the SNAPS-OO application deploy_venv.py. Decided to stop raising an exception when ansible cannot properly apply the playbook and simply logging the problem as a WARN. Change-Id: I4ae74bbaa80a5d9763cc9352810c1620af3192af Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-02-15Initial patch with all code from CableLabs repository.spisarski1-0/+114
Change-Id: I70a2778718c5e7f21fd14e4ad28c9269d3761cc7 Signed-off-by: spisarski <s.pisarski@cablelabs.com>