b0VIM 9.0      ɑi:0   root                                    localhost.localdomain                   /data/masterinstall/masterinstall.sh                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         utf-8U3210    #"! U                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 tp                                       O                                   b                     =       A                     +       k                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      ad  L                }  n  d  Y  W  #    n  F  A  "          |  u  Z    D          Z  !              }  K    
  
  
  _
  /
  
  	  	  |	  R	  J	  C	  )	  	        u  ;  	      i  :  2  +            n  <        x  J  B  ;  $          v  @        t  D  <  5  #            N      k  h                       {{ insta                               elif [[ ${ls_line} == "rab                ls_ntpnodename=${ls_templine#*=}                     elif [[ ${ls_line} == "ntpnodename" ]];then         ls_ntphostname=${ls_templine#*=}      if [[ ${ls_line} == "ntphostname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}   ls_temp="[ntp]"   done      fi         ls_rabbitmqlabelvalue=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqlabelvalue" ]];then         ls_rabbitmqlabelname=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqlabelname" ]];then         ls_rabbitmqnodename=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqnodename" ]];then         ls_rabbitmqhostname=${ls_templine#*=}      if [[ ${ls_line} == "rabbitmqhostname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}   ls_temp="[rabbitmq]"   done      fi         ls_lighttpdnodename=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdnodename" ]];then         ls_lighttpdhostname=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdhostname" ]];then         ls_lighttpdbind=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdbind" ]];then         ls_lighttpdport=${ls_templine#*=}      if [[ ${ls_line} == "lighttpdport" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}   ls_temp="[lighttpd]"   done      fi         ls_prometheuhostname=${ls_templine#*=}      elif [[ ${ls_line} == "prometheushostname" ]];then         ls_prometheusnodename=${ls_templine#*=}      elif [[ ${ls_line} == "prometheusnodename" ]];then         ls_prometheuslabelvalue=${ls_templine#*=}      elif [[ ${ls_line} == "prometheuslabelvalue" ]];then         ls_prometheuslabelname=${ls_templine#*=}      if [[ ${ls_line} == "prometheuslabelname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}    ls_temp="[prometheus]"   done      fi         ls_harborpasswd=${ls_templine#*=}      elif [[ ${ls_line} == "harborpasswd" ]];then         ls_haroboruser=${ls_templine#*=}      elif [[ ${ls_line} == "harboruser" ]];then         ls_harborport=${ls_templine#*=}      elif [[ ${ls_line} == "harborport" ]];then         ls_harbornodename=${ls_templine#*=}      elif [[ ${ls_line} == "harbornodename" ]];then         ls_harborhostname=${ls_templine#*=}      elif [[ ${ls_line} == "harborhostname" ]];then         ls_harborregistry=${ls_templine#*=}      if [[ ${ls_line} == "harborregistry" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}   ls_temp="[harbor]"   done      fi         ls_sharestoragelabelvalue=${ls_templine#*=}      elif [[ ${line} == "sharestoragelabelvalue" ]];then         ls_sharestoragelabelname=${ls_templine#*=}      elif [[ ${line} == "shares  ls_o   ls_  ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[sharestorage]"   done      fi         ls_arch=${ls_templine#*=}      elif [[ ${ls_line} == "arch" ]];then         ls_hostname=${ls_templine#*=}      if [[ ${ls_line} == "hostname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}   ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[host]"   ################## motherboard ################## { getparam() IFS=$'\n' IFS_OLD=${IFS} ######################################################## made by yqqyjy ############################################## #!/bin/bash ad         +             p  T  9  7  6  &  $                t  <  :  9  &  $                  o  ^  X  >  /  )                         k  9                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      IFS=${IFS_OLD} #installk3smaster #echo "install kesIFS=${IFS_OLD} #installk3smaster #echo "install keIFS=${IFS_OLD} #installk3smaster #echo "iIFS=${IFS_OLD} #installk3smaster #echo "iIFS=${IFS_OLD} #installk3smaster #echo "instaIFS=${IFS_OLD} #installk3smaster #echo "install kesmaster..." #read #installharbor #echo "install harbor..." #read #installdocker #echo "install docker..." #read #installlighttpd #echo "install liIFSIFS=${IFS_OIFS=${IFS_OLD} #installk3smaster #echo "install kesmaster..." #read #installharbor #echo "install harbor..." #read #installdocker #echo "install docker..." #read #installlighttpd #echo "install lighttpd..." #read #init echo "init....." getparam ${ls_rootpath}/setup.ini ls_rootpath=$(cd $(dirname $0);pwd)  }   /bin/bash ${ls_rootpath}/k3s/myinstall-master.sh { installk3smaster()  }   /bin/bash ${ls_rootpath}/harbor/arm/harbor/install.sh   /bin/bash ${ls_rootpath}/harbor/arm/harbor/prepare { installharbor()  }   systemctl start docker   systemctl enable docker   /bin/bash ${ls_rootpath}/docker/dockerinstall.sh { installdocker()  }   systemctl start lighttpd   systemctl enable lighttpd   /bin/bash ${ls_rootpath}/lighttpd/install.sh   ################## install #################      ################## all setufile ############ ad         =                     {  ]  B          w  M  $  	      r    
  
  
  
  ]
  4
  
  	  	  	        n              Q          P            e  b                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          { installlighttpd()  } cat /root/.ssh/id_rsa.pub >>/root/.ssh/authorized_keys ###################### cp id_rsa.pub to authorized_keys ################### fi    chmod 600 /root/.ssh/authorized_keys    touch /root/.ssh/authorized_keys if [[ -f /root/.ssh/authorized_keys ]];then ####################### authorized_keys ############### fi    ssh-keygen -t RSA -b 2048 -f /root/.ssh/id_rsa -P "" if [[ ! -f /root/.ssh/id_rsa && ! -f /root/.ssh/id_rsa.pub ]];then ####################### gen key ####################### fi    echo "StrictHostKeyChecking no" >>/etc/ssh/ssh_config if [[ `grep "StrictHostKeyChecking no" /etc/ssh/ssh_config` == "" ]];then ####################### StrictHostKeyChecking no ########################## { sshpub()  }      envsubst '$ls_harborregistry1,$ls_haroborhostname1,$ls_harborport1,$ls_harboruser1,$ls_harborpasswd1' <${ls_rootpath}/setupfile/lighttpd/lighttpd.conf >${ls_rootpath}/lighttpd/lighttpd.conf   export ls_lighttpdbind1=${ls_lighttpdbind}   export ls_lighttpdport1=${ls_lighttpdport}   ############# lighttpd ###############   ############# prometheus #############      envsubst '$ls_harborregistry1,$ls_haroborhostname1,$ls_harborport1,$ls_harboruser1,$ls_harborpasswd1' <${ls_rootpath}/setupfile/harbor/harbor.yml >${ls_rootpath}/harbor/arm/harbor/harbor.yml   export ls_harborpasswd1=${ls_harborpasswd}   export ls_harboruser1=${ls_harboruser}   export ls_harborport1=${ls_harborport}   export ls_haroborhostname1=${ls_harborhostname}   export ls_harborregistry1=${ls_harborregistry}   ############# harbor #################   systemctl start nfs   systemctl enable nfs   echo "${ls_sharepath} ${exportsips}(rw,all_squash,sync,anonuid=0,anongid=0)">/etc/exports   mkdir ${ls_sharepath}/ztxycluster/share/image   mkdir ${ls_sharepath}/ztxycluster/share/grafana   mkdir ${ls_sharepath}/ztxycluster/share/prometheus   mkdir -p ${ls_sharepath}   ############# sharepath ##############   hostnamectl set-hostname ${ls_hostname}   ############# hostname ###############   yum install nfs nfs-utils chrony -y   ############# yum ####################   setenforce 0   sed -i 's/SELINUX=enforcing/SELINUX=disabled' /etc/selinux/config   systemctl stop firewalld   systemctl disable firewalld   ############# firewalld and selinux ################### { init()  } #  echo "helloworld:${ls_hostname},${ls_sharepath},${ls_exportsips},${ls_sharestoragelabelname},${ls_sharestoragelabelvalue},${ls_harborregistry},${ls_harborhostname},${ls_harbornodename},${ls_harborport},${ls_haroboruser},${ls_harborpasswd},${ls_prometheuslabelname},${ls_prometheuslabelvalue},${ls_prometheusnodename},${ls_prometheuhostname},${ls_lighttpdport},${ls_lighttpdbind},${ls_lighttpdhostname},${ls_lighttpdnodename},${ls_rabbitmqhostname},${ls_rabbitmqnodename},${ls_rabbitmqlabelname},${ls_rabbitmqlabelvalue},${ls_ntphostname},${ls_ntpnodename}"   done      fi ad     1     O               `  0        ^  *  "      c  ;  6          Y  %        q  H    
  
  
  
   
  	  	  	  	  l	  2	   	      `  1  )  "    h  @  ;          f  0            x          U  '        ]  %          1  6      ^  5                                                                                                          ls_ntpnodename=${ls_templine#*=}                     elif [[ ${ls_line} == "ntpnodename" ]];t   ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[ntp]"   done      fi         ls_rabbitmqlabelvalue=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqlabelvalue" ]];then         ls_rabbitmqlabelname=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqlabelname" ]];then         ls_rabbitmqnodename=${ls_templine#*=}      elif [[ ${ls_line} == "rabbitmqnodename" ]];then         ls_rabbitmqhostname=${ls_templine#*=}      if [[ ${ls_line} == "rabbitmqhostname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}    ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[rabbitmq]"   done      fi         ls_lighttpdnodename=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdnodename" ]];then         ls_lighttpdhostname=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdhostname" ]];then         ls_lighttpdbind=${ls_templine#*=}      elif [[ ${ls_line} == "lighttpdbind" ]];then         ls_lighttpdport=${ls_templine#*=}      if [[ ${ls_line} == "lighttpdport" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}    ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[lighttpd]"   done      fi         ls_prometheuhostname=${ls_templine#*=}      elif [[ ${ls_line} == "prometheushostname" ]];then         ls_prometheusnodename=${ls_templine#*=}      elif [[ ${ls_line} == "prometheusnodename" ]];then         ls_prometheuslabelvalue=${ls_templine#*=}      elif [[ ${ls_line} == "prometheuslabelvalue" ]];then         ls_prometheuslabelname=${ls_templine#*=}      if [[ ${ls_line} == "prometheuslabelname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}    ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`    ls_temp="[prometheus]"   done      fi         ls_harborpasswd=${ls_templine#*=}      elif [[ ${ls_line} == "harborpasswd" ]];then         ls_haroboruser=${ls_templine#*=}      elif [[ ${ls_line} == "harboruser" ]];then         ls_harborport=${ls_templine#*=}      elif [[ ${ls_line} == "harborport" ]];then         ls_harbornodename=${ls_templine#*=}      elif [[ ${ls_line} == "harbornodename" ]];then         ls_harborhostname=${ls_templine#*=}      elif [[ ${ls_line} == "harborhostname" ]];then         ls_harborregistry=${ls_templine#*=}      if [[ ${ls_line} == "harborregistry" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline}    ls_originalline=`awk  -v var1=$ls_temp 'BEGIN {a=0}$0!~/^[[:blank:]]+$|^$/{if (a==1) if (!match($0,/\[/)) {print $0} else {exit} else if ($0==var1) {a=1}}' $1`   ls_temp="[harbor]"   done      fi         ls_sharestoragelabelvalue=${ls_templine#*=}      elif [[ ${ls_line} == "sharestoragelabelvalue" ]];then         ls_sharestoragelabelname=${ls_templine#*=}      elif [[ ${ls_line} == "sharestoragelabelname" ]];then         ls_exportsips=${ls_templine#*=}      elif [[ ${ls_line} == "exportsips" ]];then         ls_sharepath=${ls_templine#*=}      if [[ ${ls_line} == "sharepath" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline} ad                        \  +                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           ls_ntpnodename=${ls_templine#*=}                     elif [[ ${ls_line} == "ntpnodename" ]];then         ls_ntphostname=${ls_templine#*=}      if [[ ${ls_line} == "ntphostname" ]];then      ls_line=${ls_templine%=*}   do   for ls_templine in ${ls_originalline} 