From: Andrew Schoen Date: Wed, 27 Jan 2016 20:02:41 +0000 (-0600) Subject: ceph-ansible-pull-requests: write a json file for the extra_vars X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=67f14712d9f96fcbac9c0d46322fd9e0c70c4075;p=ceph-build.git ceph-ansible-pull-requests: write a json file for the extra_vars This'll make it easier to read and the diffs will be nicer as well. Signed-off-by: Andrew Schoen --- diff --git a/ceph-ansible-pull-requests/build/build b/ceph-ansible-pull-requests/build/build index 4f9fd3ab..c5e77773 100644 --- a/ceph-ansible-pull-requests/build/build +++ b/ceph-ansible-pull-requests/build/build @@ -8,5 +8,21 @@ install_python_packages "pkgs[@]" # without our virtualenv activated it can not find it and fails source $VENV/activate +cat > $HOME/test-vars.json << EOF +{ + "devices":["/dev/vdb"], + "ceph_stable":true, + "journal_collocation":true, + "journal_size":1024, + "monitor_interface":"eth1", + "cluster_network":"127.0.0.1/0", + "public_network":"127.0.0.1/0", + "os_tuning_params":[ + {"name": "kernel.pid_max", "value": 4194303}, + {"name": "fs.file-max", "value": 26234859} + ] +} +EOF + cd "$WORKSPACE"/ceph-ansible -$VENV/ansible-playbook -vv -i tests/inventories/single-machine.yml -c local test.yml --extra-vars='{"devices":["/dev/vdb"], "ceph_stable":true, "journal_collocation":true, "journal_size":1024, "monitor_interface":"eth1", "cluster_network":"127.0.0.1/0", "public_network":"127.0.0.1/0"}, "os_tuning_params":[{"name": "kernel.pid_max", "value": 4194303}, {"name": "fs.file-max", "value": 26234859}]' +$VENV/ansible-playbook -vv -i tests/inventories/single-machine.yml -c local test.yml --extra-vars "@$HOME/test-vars.json"