summaryrefslogtreecommitdiffstats
path: root/OPENECOMP-DEMO/vm-templates
diff options
context:
space:
mode:
authorCarsten Lund <lund@research.att.com>2017-02-24 01:14:09 +0000
committerCarsten Lund <lund@research.att.com>2017-02-24 01:14:09 +0000
commit3ffc2b325ee3a1112afaa86d529ad6f439b4cde7 (patch)
treedc890e769233474e0a384aa203f5fe88ec693b5f /OPENECOMP-DEMO/vm-templates
parent7abef9cddd039d247e8201ecac45823ef17e1eb7 (diff)
Update to fix hostname issue of demo POSTGRES VM
Change-Id: I8396b749d1a0afc532701d7f54d522aa0a33940f Signed-off-by: Carsten Lund <lund@research.att.com>
Diffstat (limited to 'OPENECOMP-DEMO/vm-templates')
-rw-r--r--OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml8
1 files changed, 2 insertions, 6 deletions
diff --git a/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml b/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml
index 4486c32..ceddb8e 100644
--- a/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml
+++ b/OPENECOMP-DEMO/vm-templates/vm-postgresql.yaml
@@ -25,12 +25,8 @@ installation-steps:
- step: shell
command: |
- case \\\\\$(hostname -a) in
- *openecomp.org*)
- sed -i /`hostname`/d /etc/hosts
- cat /tmp/vm-*-hosts >> /etc/hosts
- ;;
- esac
+ sed -i /`hostname`/d /etc/hosts
+ cat /tmp/vm-*-hosts >> /etc/hosts
apt-get update ; apt-get install -y maven openjdk-8-jdk unzip python-pip
pip install pyyaml
application-id: root