[TOC]
본 가이드는 인터넷 연결이 전혀 허락되지 않는 금융권 고객사와 같은 서버환경에서 설치를 위한 각종 패키지를 usb 에 저장하여 설치 하는 경우를 위한 가이드 입니다. 오프라인 환경에서 설치시 3가지가 필요합니다.
-
CentOS 리포지토리(redhat subscription 이 없을경우)
-
epel 리포지토리(python 관련 패키지 설치를 위해)
-
Pip 리포지토리 (Ansible 설치를 위해 필요)
-
SAS Viya 리포지토리
아래와 같이 centos 용 리포지토리를 구성합니다.
[centos 6.X]
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/7/os/x86_64/ /repos/centos/7/os/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/7/updates/x86_64/ /repos/centos/7/updates/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/7/extras/x86_64/ /repos/centos/7/extras/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/7/centosplus/x86_64/ /repos/centos/7/centosplus/x86_64
[centos 7.X]
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/6/os/x86_64/ /repos/centos/6/os/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/6/updates/x86_64/ /repos/centos/6/updates/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/6/extras/x86_64/ /repos/centos/6/extras/x86_64/
rsync -avz --exclude='repo*' rsync://ftp.kaist.ac.kr/CentOS/6/centosplus/x86_64/ /repos/centos/7/centosplus/x86_64
epel 의 경우 rsync 및 ftp bulkload 를 막아 놓은 사이트가 많아 아래 사이트에서 다운로드 받습니다.
rsync -avz --exclude='repo*' rsync://ftp.iij.ad.jp/pub/linux/Fedora/epel/7/x86_64/ /Volumes/dangtong/repos/epel/7/x86_64/
mkdir /home/ec2-user/pip_repo
cd /home/ec2-user/pip_repo
pip download ansible==2.4.1
cd /root/.config
mkdir pip
vi pip.conf
아래 내용은 pip.conf 파일에 넣어 줍니다.
index-url=file:///home/ec2-user/
커맨드 라인에서 아래 명령을 수행합니다.
export PIP_FIND_LINKS=file:///home/ec2-user/pip_repo
pip install --no-index ansible==2.4.1
gunzip mirrormgr-linux.tgz tar -xvf mirrormgr-linux.tar
명령어 : mirrormgr mirror --deployment-data {path-to-SOE-file} --path {mirror-path} --platform {platform-tag} --log-file {log-file-path} --latest
./mirrormgr mirror --deployment-data /home/ec2-user/SAS_Viya_deployment_data.zip --path /opt/install/mirror --platform x64-redhat-linux-6 --log-file /home/ec2-user/mirrormgr.log --latest