Install tgt when configuring lvm

Related-Prod: PRODX-13483
Change-Id: I407e0a760adb71feb69712a04709f53a564f738c
diff --git a/de/heat-templates/scripts/instance_boot.sh b/de/heat-templates/scripts/instance_boot.sh
index 6efe8ea..3c20313 100644
--- a/de/heat-templates/scripts/instance_boot.sh
+++ b/de/heat-templates/scripts/instance_boot.sh
@@ -185,11 +185,24 @@
     systemctl restart atop
 }
 
+# NOTE(vsaienko): drop when installed with cinder helm chart PRODX-13483
+function configure_tgt {
+    cat <<EOF > /etc/tgt/targets.conf
+# Empty targets configuration file -- please see the package
+# documentation directory for an example.
+#
+# You can drop individual config snippets into /etc/tgt/conf.d
+include /etc/tgt/conf.d/*.conf
+include /var/lib/cinder/volumes/*
+EOF
+    systemctl restart tgt
+}
+
 function install_required_packages {
     # Disable unattended upgrades
     sed -i 's/1/0/' /etc/apt/apt.conf.d/20auto-upgrades
     sed -i 's/APT::Periodic::Update-Package-Lists "1"/APT::Periodic::Update-Package-Lists "0"/g' /etc/apt/apt.conf.d/*
-    local pkg_list="apt-transport-https ca-certificates curl software-properties-common jq unzip atop iptables-persistent socat ntp rng-tools open-iscsi"
+    local pkg_list="apt-transport-https ca-certificates curl software-properties-common jq unzip atop iptables-persistent socat ntp rng-tools open-iscsi tgt"
 
     if [[ "${CONFIGURE_HUGE_PAGES}" == true ]]; then
         pkg_list="$pkg_list dpdk-igb-uio-dkms"
@@ -237,6 +250,8 @@
         pvcreate /dev/loop0
         vgcreate nova-vol /dev/loop0
     fi
+
+    configure_tgt
 }
 
 function install_docker {