diff --git a/create-flask-machine.sh b/create-flask-machine.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed3e35197714c46f1ecf0f9947137ad5c3442db --- /dev/null +++ b/create-flask-machine.sh @@ -0,0 +1,34 @@ +#!/bin/bash + +eval $(ai-rc --same-project-as fts-devel-01) + +openstack server list > /dev/null 2>&1 +if [ $? != "0" ] ; then + echo "openstack server not working" + exit +fi + +ENVIRO="qa" +KEYPAIR="fts3ops" +HOSTGROUP="fts/devel/mysql/live/flask" + +if [ "$#" -ne 1 ] +then + echo "host name required" + exit 1 +fi + +hostname=$1 + +ai-bs \ + --foreman-hostgroup "${HOSTGROUP}" \ + --foreman-environment "${ENVIRO}" \ + --landb-mainuser 'FTS-3RD' \ + --landb-responsible 'FTS-3RD' \ + --nova-flavor "m2.large" \ + --nova-sshkey "${KEYPAIR}" \ + --landb-ipv6ready \ + --cc7 \ + $hostname + + diff --git a/src/fts3rest/ftsrestconfig b/src/fts3rest/ftsrestconfig index 733d90d4503322a6a17d30a9c968c6e5173f62e2..eff361a99e4f205dbf862f54d023709aed96d7ee 100644 --- a/src/fts3rest/ftsrestconfig +++ b/src/fts3rest/ftsrestconfig @@ -2,7 +2,7 @@ DbType=mysql #db username -DbUserName= +DbUserName=fts3 #db password DbPassword=