Skip to content

Commit ccb6653

Browse files
committed
Fix IM admin login
Newer versions of IM seem not to like clear text passwords. Fixed
1 parent 1612e83 commit ccb6653

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Vagrantfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# Created by Jonas Rosland, @virtualswede & Matt Cowger, @mcowger
2+
# Modified to work with ScaleIO IM by Magnus Nilsson, @swevm
23
# Many thanks to this post by James Carr: http://blog.james-carr.org/2013/03/17/dynamic-vagrant-nodes/
34

45
# vagrant box

scripts/mdm1.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ yum install java-1.7.0-openjdk -y
5656
cd /vagrant
5757
rpm -Uv ${PACKAGENAME}-mdm-${VERSION}.${OS}.x86_64.rpm
5858
rpm -Uv ${PACKAGENAME}-sds-${VERSION}.${OS}.x86_64.rpm
59+
export GATEWAY_ADMIN_PASSWORD=${PASSWORD}
5960
rpm -Uv ${PACKAGENAME}-gateway-${VERSION}.noarch.rpm
6061
MDM_IP=${FIRSTMDMIP},${SECONDMDIP} rpm -Uv ${PACKAGENAME}-sdc-${VERSION}.${OS}.x86_64.rpm
6162
scli --mdm --add_primary_mdm --primary_mdm_ip ${FIRSTMDMIP} --accept_license
6263

6364
sed -i 's/mdm.ip.addresses=/mdm.ip.addresses='${FIRSTMDMIP}','${SECONDMDMIP}'/' /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties
64-
sed -i 's/gateway-admin.password=/gateway-admin.password='${PASSWORD}'/' /opt/emc/scaleio/gateway/webapps/ROOT/WEB-INF/classes/gatewayUser.properties
6565
service scaleio-gateway restart
6666

6767
if [[ -n $1 ]]; then

0 commit comments

Comments
 (0)