]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-pull-requests: write a json file for the extra_vars
authorAndrew Schoen <aschoen@redhat.com>
Wed, 27 Jan 2016 20:02:41 +0000 (14:02 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 27 Jan 2016 20:02:41 +0000 (14:02 -0600)
This'll make it easier to read and the diffs will be nicer as well.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-ansible-pull-requests/build/build

index 4f9fd3ab8283967ae0c27186ced7abfa529889bf..c5e7777328f3ec8bd310c227468c3048c37ab74f 100644 (file)
@@ -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"