Add xmlstarlet to base image 23/57923/1
authorThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 26 May 2017 20:36:34 +0000 (16:36 -0400)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Fri, 26 May 2017 20:37:50 +0000 (16:37 -0400)
This tool is used by lftools to parse xml and is generally useful so
include it in base image.

Change-Id: I6df7061fb00c865d1ed421f3814e3d63643e591d
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
packer/provision/baseline.sh

index 5a97699467aab83610b1021ff219886edaee0f4d..723248165b8c2f0c3f1b3df5eb44fa7715e288e8 100644 (file)
@@ -123,10 +123,19 @@ EOF
         ;;
     esac
 
+    ########################
+    # --- START LFTOOLS DEPS
+
     # Needed to parse OpenStack commands used by opendaylight-infra stack commands
     # to initialize Heat template based systems.
     yum install -y jq
 
+    # Used by lftools scripts to parse XML
+    yum install -y xmlstarlet
+
+    # --- END LFTOOLS DEPS
+    ######################
+
     # install haveged to avoid low entropy rejecting ssh connections
     yum install -y haveged
     systemctl enable haveged.service
@@ -213,10 +222,19 @@ EOF
         ;;
     esac
 
+    ########################
+    # --- START LFTOOLS DEPS
+
     # Needed to parse OpenStack commands used by opendaylight-infra stack commands
     # to initialize Heat template based systems.
     apt-get install jq
 
+    # Used by lftools scripts to parse XML
+    apt-get install xmlstarlet
+
+    # --- END LFTOOLS DEPS
+    ######################
+
     # install haveged to avoid low entropy rejecting ssh connections
     apt-get install haveged
     update-rc.d haveged defaults