Add yq and yamllint tools to basebuild

Change-Id: Idc3311ae3f625b8529897e99c0be8b48445e4f53
diff --git a/packer/provision/basebuild.sh b/packer/provision/basebuild.sh
index 41c358c..95d0307 100644
--- a/packer/provision/basebuild.sh
+++ b/packer/provision/basebuild.sh
@@ -167,7 +167,8 @@
         tox \
         twine==1.15.0 \
         urllib3 \
-        virtualenv
+        virtualenv \
+        yamllint
         # end of pip install list
 
     # install ruby gems
@@ -294,6 +295,14 @@
     dpkg -i /tmp/pandoc.deb
     rm -f /tmp/pandoc.deb
 
+    # install yq (YAML query)
+    YQ_VERSION="3.3.0"
+    YQ_SHA256SUM="e70e482e7ddb9cf83b52f5e83b694a19e3aaf36acf6b82512cbe66e41d569201"
+    curl -L -o /tmp/yq https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/yq_linux_amd64
+    echo "$YQ_SHA256SUM  /tmp/yq" | sha256sum -c -
+    mv /tmp/yq /usr/local/bin/yq
+    chmod -R a+rx /usr/local/bin/yq
+
     # remove apparmor
     service apparmor stop
     update-rc.d -f apparmor remove