]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
use variables to set extra-vars so they show up in console output
authorAndrew Schoen <aschoen@redhat.com>
Wed, 27 Jan 2016 20:59:13 +0000 (14:59 -0600)
committerAndrew Schoen <aschoen@redhat.com>
Wed, 27 Jan 2016 20:59:13 +0000 (14:59 -0600)
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
ceph-ansible-pull-requests/build/build

index c5e7777328f3ec8bd310c227468c3048c37ab74f..0e140c976606893dda410b7904cf7a5eac0cbec9 100644 (file)
@@ -8,19 +8,28 @@ install_python_packages "pkgs[@]"
 # without our virtualenv activated it can not find it and fails
 source $VENV/activate
 
+devices='["/dev/vdb"]'
+ceph_stable="true"
+journal_collocation="true"
+journal_size=1024
+# use eth1 for libvirt and ubuntu, enp0s8 for CentOS
+monitor_interface="eth1"
+cluster_network="127.0.0.1/0"
+public_network="127.0.0.1/0"
+# the default settings include a setting for vm.min_free_kbytes which asks
+# for more memory than our jenkins slaves allow, so we remove it here
+os_tuning_params='[{"name": "kernel.pid_max", "value": 4194303},{"name": "fs.file-max", "value": 26234859}]'
+
 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}
-    ]
+    "devices":$devices,
+    "ceph_stable":$ceph_stable,
+    "journal_collocation":$journal_collocation,
+    "journal_size":$journal_size,
+    "monitor_interface":"$monitor_interace",
+    "cluster_network":"$cluster_network",
+    "public_network":"$cluster_network",
+    "os_tuning_params":$os_tuning_params
 }
 EOF