CentOS Local Repository - solusi247/YAVA GitHub Wiki

Install httpd di Master yava00: yum install httpd

Mount CentOS ISO di RootDirectory httpd:

[root@yava00 ~]# mkdir -p /var/www/html/CentOS7
[root@yava00 ~]# mount -o loop /root/CentOS-7.2-x86_64-Everything-1511.iso /var/www/html/CentOS7

Agar selalu di mount saat reboot, tambahkan di /etc/fstab:

# CentOS local repo
/root/CentOS-7.2-x86_64-Everything-1511.iso /var/www/html/CentOS7 iso9660 ro,auto,loop 0 0

Tambahkan file CentOS-Local.repo di /etc/yum.repos.d yang berisi:

[c7-local]
name=CentOS-$releasever - Local
baseurl=http://yava00/CentOS7/
gpgcheck=0
enabled=1

Copy ke worker nodes:

[root@yava00 ~]# for i in `cat worker-nodes.txt`; do rsync -avz /etc/yum.repos.d/CentOS-Local.repo root@${i}:/etc/yum.repos.d/CentOS-Local.repo; done