]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commit
tests: convert extra-vars to use json 1368/head
authorAndrew Schoen <aschoen@redhat.com>
Thu, 16 Mar 2017 11:16:09 +0000 (06:16 -0500)
committerAndrew Schoen <aschoen@redhat.com>
Thu, 16 Mar 2017 19:23:41 +0000 (14:23 -0500)
commit000110d2a2331dc17b7ab54762aa480837183cc2
tree97bed8b27874eb8f47d72b1c9b8b5e85ff1fad7d
parentd76b1d960977d4e5339a17de5daacdbad33fc6e0
tests: convert extra-vars to use json

This will prevent ansible from misreading any of these values. There
were failures with xenial deployments because the value set for
``ceph_rhcs`` was being treated as a boolean True even though I'd set
the value to false. This is because boolean values passed in with
--extra-vars must use the json format.

The formatting of the json is very important as you need a '\' to escape
the starting and ending json to make tox happy. Also, each line needs to
end with '\' if it's a multi-line command.

Another thing to note is that if you want to use extra vars at the
command line to respond to a vars_prompt it must be in key/value format.
This is why we have a -e and a --extra-vars on the purge and update
tests.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
tox.ini