updated for tsys

This commit is contained in:
Charles N Wyble - admin 2018-01-28 14:39:37 -06:00
parent cd40a2a03e
commit 85bc284cfa
13 changed files with 14 additions and 102 deletions

View File

@ -9,7 +9,6 @@
export MGMT_INT="$(netstat -rn |grep 0.0.0.0|awk '{print $NF}' |head -n1 )"
export MGMT_IP="$(ifconfig eth0|grep inet|awk '{print $2}'|head -n1)"
export ENVIP="$(echo $MGMT_IP|awk -F '.' '{print $2}')"
export DIST_SERVER="http://tsys-techops.turnsys.net/"
export DIST_ROOT_PATH="slack-dist"
@ -33,33 +32,22 @@ export DIST_ROOT_PATH="slack-dist"
#fi
case $server_type in
ts)
export SERVER_TYPE="ts"
abc)
export SERVER_TYPE="abc"
;;
cvm)
export SERVER_TYPE="cvm"
xxx)
export SERVER_TYPE="xxx"
;;
bvm)
export SERVER_TYPE="bvm"
yyy)
export SERVER_TYPE="yyy"
;;
*)
export SERVER_TYPE="prod"
;;
esac
case $ENVIP in
253)
export SITE="ovh"
;;
251)
export SITE="aus"
;;
40)
export SITE="satx"
;;
*)
esac
#######################################################################################################################################################
@ -97,8 +85,8 @@ mkdir /root/.ssh
chmod 700 /root/.ssh
chown -R root:root /root/.ssh
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SITE/SlackConfig-$SITE-$SERVER_TYPE.config -O /etc/slack.conf
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SITE/SlackSSH-$SITE-$SERVER_TYPE.config -O /root/.ssh/config
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SITE/SlackSSH-$SITE-$SERVER_TYPE.key -O /root/.ssh/SlackSSH-$SITE-$SERVER_TYPE.key
chmod 400 /root/.ssh/SlackSSH-$SITE-$SERVER_TYPE.key
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SERVER_TYPE/SlackConfig-$SERVER_TYPE.config -O /etc/slack.conf
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SERVER_TYPE/SlackSSH-$SERVER_TYPE.config -O /root/.ssh/config
wget $DIST_SERVER/$DIST_ROOT_PATH/env/$SERVER_TYPE/SlackSSH-$SERVER_TYPE.key -O /root/.ssh/SlackSSH-$SITE-$SERVER_TYPE.key
chmod 400 /root/.ssh/SlackSSH-$SERVER_TYPE.key
chmod 400 /root/.ssh/config

View File

@ -1,4 +0,0 @@
Host tsys-techops.turnsys.net
User tsys-techops
IdentityFile /root/.ssh/SlackSSH-aus-prod.key
StrictHostKeyChecking no

View File

@ -1,6 +0,0 @@
ROLE_LIST=tsys-techops.turnsys.net:/local/tsys-techops/slack/prod/etc/roles.conf
SOURCE=tsys-techops-turnsys.net:/local/tsys-techops/
CACHE=/var/cache/slack
STAGE=/var/lib/slack/stage
ROOT=/
BACKUP_DIR=/var/lib/slack/backups

View File

@ -1,4 +0,0 @@
Host tsys-techops.turnsys.net
User tsys-techops
IdentityFile /root/.ssh/SlackSSH-aus-prod.key
StrictHostKeyChecking no

View File

@ -1,27 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAs7Ndaskoh0HVk4NSc8eR3PNBilv9DuWw8tjquo/7VEappkg3
F8IlvxitVIxGoZEf2bkEigcYgB+l/6j5ubIKZ8R2vUzY3sSZpl5KGl/2yl+TtO/9
F7ZyhYbR348gEDZMFCKUXdFsdCArf6u6nmbWaYGrunRRl/fPwNbmO7c0WF/UEqvB
cmJGY7772SJuuQUl/rhy9y4PJr8dmj7K04XU7tLJKqz83PLCiXis+g255vBJPjqA
MJG9hRo/8kQmNTbDR4dEwBRjce2Lo6iBaw4NHQ4mjYhZDprH6kZdfvDd6fs6+hJR
NIsUX3Q9g8wAReBqdtFED32QenoBKvshoZD78wIDAQABAoIBAGcw/toNfcp+EalN
5hE6bxaUUfSj8mOVntE1o0VS3R5+HXmxSoHIKWjdQNumWgD5l3Ktfl/Mx1L72ZVA
cXcjODpyZUU7VeZGu3z/9EnFBbEcxXNHxOzTBlyLGQXp6J2msHV3jf95/W+J8bC0
6st/fmzD29uMZDaCRbkVLszn3ZVJ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----

View File

@ -1 +0,0 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCzs11qySiHQdWTg1Jzx5Hc80GKW/0O5bDy2Oq6j/tURqmmSDcXwiW/GK1UjEahkR/ZuQSKBxiAH6X/qPm5sgpnxHa9TNjexJmmXkoaX/bKX5O07/0XtnKFhtHfjyAQNkwUIpRd0Wx0ICt/q7qeZtZpgau6dFGX98/A1uY7tzRYX9QSq8FyYkZjvvvZIm65BSX+uHL3Lg8mvx2aPsrThdTu0skqrPzc8sKJeKz6Dbnm8Ek+OoAwkb2FGj/yRCY1NsNHh0TAFGNx7YujqIFrDg0dDiaNiFkOmsfqRl1+8N3p+zr6ElE0ixRfdD2DzABF4Gp20UQPfZB6egEq+yGhkPvz charles@ultix

View File

@ -1,5 +1,5 @@
ROLE_LIST=tsys-techops.turnsys.net:/local/tsys-techops/slack/prod/etc/roles.conf
SOURCE=tsys-techops-turnsys.net:/local/tsys-techops/
SOURCE=tsys-techops.turnsys.net:/local/tsys-techops/
CACHE=/var/cache/slack
STAGE=/var/lib/slack/stage
ROOT=/

View File

@ -1,4 +1,4 @@
Host tsys-techops.turnsys.net
User tsys-techops
IdentityFile /root/.ssh/SlackSSH-aus-prod.key
IdentityFile /root/.ssh/SlackSSH-prod.key
StrictHostKeyChecking no

View File

@ -1,6 +0,0 @@
ROLE_LIST=tsys-techops.turnsys.net:/local/tsys-techops/slack/prod/etc/roles.conf
SOURCE=tsys-techops-turnsys.net:/local/tsys-techops/
CACHE=/var/cache/slack
STAGE=/var/lib/slack/stage
ROOT=/
BACKUP_DIR=/var/lib/slack/backups

View File

@ -1,27 +0,0 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEpAIBAAKCAQEAs7Ndaskoh0HVk4NSc8eR3PNBilv9DuWw8tjquo/7VEappkg3
F8IlvxitVIxGoZEf2bkEigcYgB+l/6j5ubIKZ8R2vUzY3sSZpl5KGl/2yl+TtO/9
F7ZyhYbR348gEDZMFCKUXdFsdCArf6u6nm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