Create fio VMs with user data
For setup activities that are to be executed inside
fio VM clients (e.g. installing fio package) user data
can be passed to VMs on their creation.
Related-PROD: PROD-37187
Change-Id: I31a5acec1c040fb1f97915dc99685e59f569c9bd
diff --git a/fio/user_data.sh b/fio/user_data.sh
new file mode 100644
index 0000000..dc37dfc
--- /dev/null
+++ b/fio/user_data.sh
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+# In necessary, uncomment to add proxy
+# echo "Acquire::https::Proxy \"http://PROXY_ENDPOINT\";" >> /etc/apt/apt.conf.d/proxy.conf
+# echo "Acquire::http::Proxy \"http://PROXY_ENDPOINT\";" >> /etc/apt/apt.conf.d/proxy.conf
+apt update
+# Install fio with a timeout to wait for apt lock to be released
+apt -y -o DPkg::Lock::Timeout=180 install fio
\ No newline at end of file