aboutsummaryrefslogtreecommitdiffstats
path: root/prototypes
diff options
context:
space:
mode:
authorferenc Cserepkei <ferenc.cserepkei@ericsson.com>2016-08-03 12:59:23 +0200
committerferenc Cserepkei <ferenc.cserepkei@ericsson.com>2016-08-03 13:02:26 +0200
commit313ac985032ef9199f564e2d87dba8d79b72c09b (patch)
treec1bd5bce7ccd9fd46e6822b0f5bafbe7a600c0fe /prototypes
parent5c9590de139f16bdb764b24ecc5dff76640b210e (diff)
POC script updates for Colorado
Change-Id: I2afb7826a5dcc22f5d810312e1ff027a0b5fcbfa Signed-off-by: ferenc Cserepkei <ferenc.cserepkei@ericsson.com>
Diffstat (limited to 'prototypes')
-rwxr-xr-xprototypes/sfc_tacker/poc.tacker-up.sh25
1 files changed, 18 insertions, 7 deletions
diff --git a/prototypes/sfc_tacker/poc.tacker-up.sh b/prototypes/sfc_tacker/poc.tacker-up.sh
index be647b409..e22eeac8b 100755
--- a/prototypes/sfc_tacker/poc.tacker-up.sh
+++ b/prototypes/sfc_tacker/poc.tacker-up.sh
@@ -27,6 +27,9 @@ CLIENT=$(echo python-python-tackerclient_*_all.deb)
JSONRPC=$(echo python-jsonrpclib_*_all.deb)
SERVER=$(echo python-tacker_*_all.deb)
+#fuel admin user name
+fadm="fadm"
+
# Function checks whether crudini is available, if not - installs
function chkCrudini () {
if [[ ! -f '/usr/bin/crudini' ]]; then
@@ -87,7 +90,7 @@ function buildTackerServer () {
fi
cd $MYDIR
rm -rf $MYREPO
- git clone -b 'SFC_brahmaputra' https://github.com/trozet/tacker.git $MYREPO
+ git clone -b 'SFC_colorado' https://github.com/trozet/tacker.git $MYREPO
cd $MYREPO
patch -p 1 <<EOFSCP
diff -ruN a/setup.cfg b/setup.cfg
@@ -239,9 +242,10 @@ function populate_client() {
for anode in $clusternodes ; do
if [ "$anode" != "$myaddr" ] ; then
echo "Installing $CLIENT on $anode"
- scp ${SSH_OPTIONS[@]} $CLIENT $anode:$CLIENT
- ssh ${SSH_OPTIONS[@]} $anode dpkg -i $CLIENT
- ssh ${SSH_OPTIONS[@]} $anode rm $CLIENT
+ scp ${SSH_OPTIONS[@]} -i "${MYDIR}/.ssh/id_rsa" ${CLIENT} ${fadm}@${anode}:${CLIENT}
+ ssh ${SSH_OPTIONS[@]} -i "${MYDIR}/.ssh/id_rsa" ${fadm}@${anode} sudo dpkg -i ${CLIENT}
+ ssh ${SSH_OPTIONS[@]} -i "${MYDIR}/.ssh/id_rsa" ${fadm}@${anode} rm ${CLIENT}
+
fi
done
}
@@ -262,12 +266,14 @@ function orchestarte () {
auth_uri=$(crudini --get '/etc/heat/heat.conf' 'keystone_authtoken' 'auth_uri')
identity_uri=$(crudini --get '/etc/heat/heat.conf' 'keystone_authtoken' 'identity_uri')
+ int_addr=$(ifconfig br-mesh | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
mgmt_addr=$(ifconfig br-mgmt | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
pub_addr=$(ifconfig br-ex-lnx | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
rabbit_host=$(crudini --get '/etc/heat/heat.conf' 'oslo_messaging_rabbit' 'rabbit_hosts'| cut -d ':' -f 1)
rabbit_password=$(crudini --get '/etc/heat/heat.conf' 'oslo_messaging_rabbit' 'rabbit_password')
sql_host=$(hiera database_vip)
database_connection="mysql://tacker:tacker@${sql_host}/tacker"
+ internal_url="http://${int_addr}:${bind_port}"
admin_url="http://${mgmt_addr}:${bind_port}"
public_url="http://${pub_addr}:${bind_port}"
heat_api_vip=$(crudini --get '/etc/heat/heat.conf' 'heat_api' 'bind_host')
@@ -309,12 +315,17 @@ function orchestarte () {
password => '${myPassword}',
tenant => '${service_tenant}',
admin_url => '${admin_url}',
- internal_url => '${admin_url}',
+ internal_url => '${internal_url}',
public_url => '${public_url}',
region => '${myRegion}',
}
EOF
+ apt-get install -y mysql-client-5.5
+ cat > /usr/bin/tacker-manage <<EOFAKEMANAGE
+#!/bin/bash
+EOFAKEMANAGE
+ chmod +x /usr/bin/tacker-manage
puppet apply configure_tacker.pp
rm -f tackerc
cat > tackerc <<EOFRC
@@ -344,8 +355,8 @@ function populate_rc() {
myaddr=$(ifconfig br-fw-admin | sed -n '/inet addr/s/.*addr.\([^ ]*\) .*/\1/p')
for anode in $clusternodes ; do
if [ "$anode" != "$myaddr" ] ; then
- echo "Populating seetings to $anode"
- scp ${SSH_OPTIONS[@]} tackerc $anode:tackerc
+ echo "Populating settings to $anode"
+ scp ${SSH_OPTIONS[@]} -i "${MYDIR}/.ssh/id_rsa" tackerc ${fadm}@${anode}:tackerc
fi
done
}