spacewalk-repo-sync, CentOS 7

CatOnRug solve, automate, speed up
I have create a huge collection of CentOS 7 child channels:

CentOS 7 Base x86_64
centos-7-updates-x86_64
centos-7-extras-x86_64
spacewalk-client-2-5-rhel-7-x86_64
epel-7-x86_64
spacewalk-2-5-rhel-7-x86_64
nux-dextop-el7-x86_64
trinity-r14-el7-x86_64
jpackage-5-generic-free
zabbix-24-rhel-7-x86_64
postgresql-95-rhel-7-x86_64

This is how I sync it:
cat > /root/sync-repo.sh << EOF
spacewalk-repo-sync -c centos-7-base-x86_64 --sync-kickstart
spacewalk-repo-sync -c centos-7-updates-x86_64
spacewalk-repo-sync -c centos-7-extras-x86_64
spacewalk-repo-sync -c spacewalk-client-2-5-rhel-7-x86_64
spacewalk-repo-sync -c epel-7-x86_64
spacewalk-repo-sync -c spacewalk-2-5-rhel-7-x86_64
spacewalk-repo-sync -c nux-dextop-el7-x86_64
spacewalk-repo-sync -c trinity-r14-el7-x86_64
spacewalk-repo-sync -c jpackage-5-generic-free
spacewalk-repo-sync -c zabbix-24-rhel-7-x86_64
spacewalk-repo-sync -c postgresql-95-rhel-7-x86_64
EOF
chmod +x /root/sync-repo.sh
cd /root
./sync-repo.sh

No comments:

Post a Comment