Change-Id: I3dbc4ea6a49e01850918cbe8662fed78269da5af
Issue-Id: MULTICLOUD-95
Signed-off-by: Guo Ruijing <ruijing.guo@intel.com>
-#!/usr/bin/env bash
+#!/bin/bash
-set -e
+set -ex
sudo apt-get update -y
sudo apt-get install git -y
-git clone https://github.com/openstack-dev/devstack
+git clone https://github.com/openstack-dev/devstack
cd devstack; git checkout stable/ocata
sudo apt-get install openvswitch-switch -y
sudo ovs-vsctl add-br br-ex
#!/bin/bash
-set -e
+set -ex
source ~/devstack/openrc admin admin
nova-manage cell_v2 discover_hosts
-#!/usr/bin/env bash
+#!/bin/bash
-set -e
+set -ex
cd devstack
cp /vagrant/compute.conf local.conf
-#!/usr/bin/env bash
+#!/bin/bash
-set -e
+set -ex
cd devstack
cp /vagrant/control.conf local.conf
./stack.sh
+
+sudo sed -i "s/recursion no;/recursion yes;\n forwarders { 8.8.8.8; 8.8.8.4; };/" \
+ /etc/bind/named.conf.options
+sudo service bind9 restart