summaryrefslogtreecommitdiffstats
path: root/playbooks/provisioning
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobreli@redhat.com>2017-07-28 16:44:36 +0200
committerTomas Sedovic <tomas@sedovic.cz>2017-07-28 16:44:36 +0200
commit56bd0c0417b4a5d79a106a0aed771a4ca477d572 (patch)
tree1461f373e83713a5d8afb0850f550db4b41bfa71 /playbooks/provisioning
parentde4443fb698555a81f6210c7660e05d26197ee91 (diff)
downloadopenshift-56bd0c0417b4a5d79a106a0aed771a4ca477d572.tar.gz
openshift-56bd0c0417b4a5d79a106a0aed771a4ca477d572.tar.bz2
openshift-56bd0c0417b4a5d79a106a0aed771a4ca477d572.tar.xz
openshift-56bd0c0417b4a5d79a106a0aed771a4ca477d572.zip
Note about jmespath requirement for control node (#599)
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
Diffstat (limited to 'playbooks/provisioning')
-rw-r--r--playbooks/provisioning/openstack/README.md1
-rw-r--r--playbooks/provisioning/openstack/prerequisites.yml10
2 files changed, 11 insertions, 0 deletions
diff --git a/playbooks/provisioning/openstack/README.md b/playbooks/provisioning/openstack/README.md
index 6b9e5a3a9..8e99dd14b 100644
--- a/playbooks/provisioning/openstack/README.md
+++ b/playbooks/provisioning/openstack/README.md
@@ -10,6 +10,7 @@ etc.). The result is an environment ready for openshift-ansible.
* [Ansible-galaxy](https://pypi.python.org/pypi/ansible-galaxy-local-deps)
* [jinja2](http://jinja.pocoo.org/docs/2.9/)
* [shade](https://pypi.python.org/pypi/shade)
+* python-jmespath / [jmespath](https://pypi.python.org/pypi/jmespath)
* python-dns / [dnspython](https://pypi.python.org/pypi/dnspython)
* Become (sudo) is not required.
diff --git a/playbooks/provisioning/openstack/prerequisites.yml b/playbooks/provisioning/openstack/prerequisites.yml
index 71a99fc82..dd4f980b2 100644
--- a/playbooks/provisioning/openstack/prerequisites.yml
+++ b/playbooks/provisioning/openstack/prerequisites.yml
@@ -20,6 +20,16 @@
that: 'shade_result.rc == 0'
msg: "Python module shade is not installed"
+ # Check jmespath
+ - name: Try to import python module shade
+ command: python -c "import jmespath"
+ ignore_errors: yes
+ register: jmespath_result
+ - name: Check if jmespath is installed
+ assert:
+ that: 'jmespath_result.rc == 0'
+ msg: "Python module jmespath is not installed"
+
# Check python-dns
- name: Try to import python DNS module
command: python -c "import dns"