diff options
author | Carsten Lund <lund@research.att.com> | 2017-06-21 11:36:15 +0000 |
---|---|---|
committer | Carsten Lund <lund@research.att.com> | 2017-06-21 11:38:13 +0000 |
commit | b2112de48b9c00738bea8e826d23413ac79b47c3 (patch) | |
tree | cfa03c03821facfb4befc00ed451624ccda4e180 | |
parent | 8f2ae2aad19bdbdfc6276476f58e7cef671a113f (diff) |
Change-Id: I96c47d4c9997e4eae96f912c9af40f0b218d0c5c
Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r-- | OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml | 3 | ||||
-rw-r--r-- | OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml | 11 |
2 files changed, 8 insertions, 6 deletions
diff --git a/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml b/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml index a375f45..160ed66 100644 --- a/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml +++ b/OPENECOMP-DEMO/vm-templates/vm-cdap-cluster.yaml @@ -27,6 +27,9 @@ installation-steps: - step: shell command: | + echo auto eth1 >> /etc/network/interfaces + echo iface eth1 inet dhcp >> /etc/network/interfaces + ifup eth1 apt-get update ; apt-get install -y maven openjdk-7-jdk unzip python-pip pip install pyyaml application-id: root diff --git a/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml b/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml index 15fefff..e9c34cd 100644 --- a/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml +++ b/OPENECOMP-DEMO/vm-templates/vm-docker-host.yaml @@ -20,12 +20,11 @@ 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 + echo auto eth1 >> /etc/network/interfaces + echo iface eth1 inet dhcp >> /etc/network/interfaces + ifup eth1 apt-get update ; apt-get install -y maven openjdk-7-jdk unzip python-pip pip install libyaml application-id: root |