YAVA Local Repository - solusi247/YAVA GitHub Wiki

Copykan semua repo YAVA di /var/www/html/yava-repo

# tree /var/www/html/yava-repo/ -L 5
/var/www/html/yava-repo/
├── ambari
│   └── rhel
│       └── 7
│           └── x86_64
│               ├── 2.1.0│               
│               ├── 2.2.1-1110-12
│               └── RPM-GPG-KEY
├── YAVA
│   └── rhel
│       └── 7
│           └── x86_64
│               ├── 2.1.0.0│               
│               └── 2.2.0.2
└── YAVA-UTILS
    └── rhel
        └── 7
            └── x86_64
                └── 1.1

Buat file ambari.repo di /etc/yum.repos.d:

[ambari-2.1.0]
name=ambari-2.1.0
baseurl=http://yava00.solusi247.com/yava-repo/ambari/rhel/7/x86_64/2.1.0
enabled=1
gpgcheck=0

[YAVA-2.1.0.0]
name=YAVA-2.1.0.0
baseurl=http://yava00.solusi247.com/yava-repo/YAVA/rhel/7/x86_64/2.1.0.0
enabled=1
gpgcheck=0

[YAVA-UTILS-1.1]
name=YAVA-UTILS-1.1
baseurl=http://yava00.solusi247.com/yava-repo/YAVA-UTILS/rhel/7/x86_64/1.1
enabled=1
gpgcheck=0

Copy ke worker node:

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