!/bin/bash if [ $# -lt 1 ];then echo "Usage: $0 play|www|server|fenquapp|globalapp|battle|db_job|report_job|pay_job|bgm_server|router" fi case $1 in play) ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" dx1sock1 ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" dx1sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/dx1/${1}" dx1sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/dx1/${1}" dx1sock2 www) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" ${i}sock1 ansible -m shell -a "cd /data/site/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done server) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock1 ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock1 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done fenquapp) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/appserver;svn revert -R ./;svn up" ${i}appserver ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/appserver" ${i}appserver done db_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done report_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done pay_job) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done router) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /home/${1};svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/${1}" ${i}sock2 done bgm_server) for i in dx1 dx2 dx3 dx4 dx5 lt1 lt2 lt3 360 179 9377 do ansible -m shell -a "cd /data/site/pjb_bgmv2;svn revert -R ./;svn up" ${i}sock2 ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/${i}/bgm_server" ${i}sock2 done global) ansible -m shell -a "cd /home/autoconfig;svn revert -R ./;svn up" globalappserver ansible -m shell -a "cd /home/global;svn revert -R ./;svn up" globalappserver ansible -m shell -a "cd /home/appserver;svn revert -R ./;svn up" globalappserver ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/global/appserver" globalappserver battle) ansible -m shell -a "cd /home/autoconfig;svn revert -R ./;svn up" phybattleall ansible -m shell -a "cd /home/battleserver;svn revert -R ./;svn up" phybattleall for i in {1..10} do ansible -m shell -a "cd /home/phybattle${i};svn revert -R ./;svn up" phybattle${i} ansible -m shell -a ". /etc/profile;sh /home/autoconfig/autoconfig.sh /home/phybattle${i}" phybattle${i} done esac成都創(chuàng)新互聯(lián)公司技術(shù)團(tuán)隊(duì)十余年來致力于為客戶提供成都做網(wǎng)站、成都網(wǎng)站制作、品牌網(wǎng)站設(shè)計(jì)、營(yíng)銷型網(wǎng)站、搜索引擎SEO優(yōu)化等服務(wù)。經(jīng)過多年發(fā)展,公司擁有經(jīng)驗(yàn)豐富的技術(shù)團(tuán)隊(duì),先后服務(wù)、推廣了千余家網(wǎng)站,包括各類中小企業(yè)、企事單位、高校等機(jī)構(gòu)單位。
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。