add static hostname resolution for voltha-api and etcd ingress on k8s

* the default virtual hostnames exposed by the voltha-api and etcd
  ingresses are 'voltha.voltha.local' and 'voltha-infra.local' for our
  setups
* to allow connections to those ingress endpoints from the host where
  the k8s cluster itself is running on, we can just create /etc/hosts
  entries to resolve those hostnames to localhost (aka set them as
  aliases for 127.0.0.1)
* the commit with the id shown below did this for the basebuild.sh
  script and this commit is adding it now also in the ansible
  playbook used to build ubuntu 18.04 images
  5c2e427a75e02dceaea692884a847f6468619ad6

Signed-off-by: Jan Klare <jan.klare@bisdn.de>
Change-Id: I6e1f8ca7e97e59b9bf7910dd278cf230721a0daf
Signed-off-by: Jan Klare <jan.klare@bisdn.de>
diff --git a/packer/provision/baseline.yaml b/packer/provision/baseline.yaml
index c57d8fc..10562eb 100644
--- a/packer/provision/baseline.yaml
+++ b/packer/provision/baseline.yaml
@@ -42,6 +42,14 @@
         backup: true
       become: true
 
+    - name: Update /etc/hosts to resolve voltha-api and etcd ingress hostnames
+      replace:
+        path: /etc/hosts
+        regexp: '^(127\.0\.0\.1 .*)$'
+        replace: '127.0.0.1 localhost voltha.voltha.local voltha-infra.local'
+        backup: true
+      become: true
+
     - name: Disable periodic updates
       block:
         - name: Set all periodic update options to 0