Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
deploy [2024/03/07 07:07] jsdeploy [2024/06/24 11:55] (current) js
Line 21: Line 21:
   - if there is no direct internet connection, use our tar files for base and updates centos repo. Copy the files to /opt/tmp:   - if there is no direct internet connection, use our tar files for base and updates centos repo. Copy the files to /opt/tmp:
     - if /opt/tmp not exists, create dir: ''mkdir -p /opt/tmp''     - if /opt/tmp not exists, create dir: ''mkdir -p /opt/tmp''
-    - download following files to /opt/tmp+    - upload following files to /opt/tmp
       * Latest base tar: co79-x86_64-base-20210618.tar.gz       * Latest base tar: co79-x86_64-base-20210618.tar.gz
       * Latest base sha256sum file: co79-x86_64-base-20210618.tar.gz.sha256       * Latest base sha256sum file: co79-x86_64-base-20210618.tar.gz.sha256
Line 27: Line 27:
       * Latest patch sha256 sum file: co79-x86_64-updates-20240227.sha256       * Latest patch sha256 sum file: co79-x86_64-updates-20240227.sha256
     - Unpack tar files      - Unpack tar files 
-      create repo dircmd: ''mkdir /opt/local/repos/centos/7.9/'' +      create repo dir 
-      create symlinkcmd: ''cd /opt/local/repos/centos/'' and ''ln -s 7.9 7'' +        * cmd: ''mkdir /opt/local/repos/centos/7.9/'' 
-      unpack tar filecmd: ''tar -C /opt/local/repos/centos/7 -xvzf /opt/tmp/co79-x86_64-base-20210618.tar.gz'' +      create symlink 
-      create updates repo dircmd: ''mkdir /op/local/repos/centos/7/updates/x86_64'' +        * cmd: ''cd /opt/local/repos/centos/''  
-      unpack tar filecmd: ''tar -C /opt/local/repos/centos/7/updates/x86_64 -xvf /opt/tmp/co79-x86_64-updates-20240227.tar''+        * cmd: ''ln -s 7.9 7'' 
 +      unpack tar file 
 +        * cmd: ''tar -C /opt/local/repos/centos/7 -xvzf /opt/tmp/co79-x86_64-base-20210618.tar.gz'' 
 +      create updates repo dir 
 +        * cmd: ''mkdir -p /opt/local/repos/centos/7/updates/x86_64'' 
 +      unpack tar file  
 +        * cmd: ''tar -C /opt/local/repos/centos/7/updates/x86_64 -xvf /opt/tmp/co79-x86_64-updates-20240227.tar''
     - If createrepo is not installed, install it.      - If createrepo is not installed, install it. 
       * cmd: ''yum -y install createrepo''       * cmd: ''yum -y install createrepo''
     - Create updates repository control files     - Create updates repository control files
       * cmd: ''createrepo -v /opt/local/repos/centos/7/updates/x86_64''        * cmd: ''createrepo -v /opt/local/repos/centos/7/updates/x86_64'' 
-  - Check if centos base and update repo sections exist in /etc/yum.repos.d/centos.repo - if not add following content    <code>---- centos.repo ---- +  - Check if centos base and updates repo sections exist in /etc/yum.repos.d/centos.repo - if not add following content    <code>---- centos.repo ---- 
 [centos]   [centos]  
 name=centos local file directory mirror -$releasever - Base   name=centos local file directory mirror -$releasever - Base  
Line 52: Line 58:
 ---------------------  --------------------- 
 </code> </code>
-  - run yum update cmd: ''yum -y update'' +  - run yum update  
-  - delete new CentOS-* files in /etc/yum.repos.d+    * cmd: ''yum -y update'' 
 +  - delete new CentOS-* files in /etc/yum.repos.d  
 +    * cmd: ''rm -f /etc/yum.repos.d/CentOS-*''
 \\ \\
 \\ \\
Line 66: Line 74:
  
 ==== 1. fsiinst ==== ==== 1. fsiinst ====
-  - upload the fsiinst_<distribution>_<version>.tar + sha256 file to the fsi server - [[deploy:distribution|more information about the distribution fsiinst tar file]] +  - upload the ''fsiinst%%__%%<distribution>%%__%%<version>%%__%%osv<os version>.tar'' + sha256 file to /opt/tmp on the fsi server - [[deploy:distribution|more information about the distribution fsiinst tar file]] 
-  - login to the fsi server and check sha256sum of the tar file \\ ''sha256sum -c fsiinst_<distribution>_<version>_osv<os version>.tar.sha256'' +  - login to the fsi server and check sha256sum of the tar file 
-  - unpack with \\ ''tar -C /opt -xvf fsiinst_<distribution>_<version>_osv<os version>.tar'' +    * cmd: ''cd /opt/tmp'' 
-  - upload or create fsiinst.cfg file - [[deploy:fsiinstcfg|more information about the fsiinst.cfg file]] +    * cmd: ''sha256sum -c fsiinst%%__%%<distribution>%%__%%<version>%%__%%osv<os version>.tar.sha256'' 
-  - run installation with \\ ''/opt/install/fsiinst -a -c <configfile>''+  - unpack with 
 +    * cmd: ''tar -C /opt -xvf fsiinst%%__%%<distribution>%%__%%<version>%%__%%osv<os version>.tar'' 
 +  - upload or create config file, e.g. fsiinst.cfg - [[deploy:fsiinstcfg|more information about the fsiinst.cfg config file]] 
 +  - run installation with 
 +    * cmd: ''/opt/install/fsiinst -a -c <configfile>''
 <WRAP left round tip 100%> <WRAP left round tip 100%>
 If there is a new update you can install it with the single rpm or just download a new distribution file and restart the fsiinst script. If there is a new update you can install it with the single rpm or just download a new distribution file and restart the fsiinst script.