Cobbler adds a custom YUM source, cobbleryum
Link: http://blog.csdn.net/kongxx/article/details/43924263
First, refer to the previous articles about Cobbler to create a Cobbler Remote Installation environment.
Then, create the YUM repository based on the previous blogs about the RPM package and YUM installation source.
Run the following command on the host where Cobbler is located to add a Cobbler repo.
sudo cobbler repo add --name=my_repo --arch=x86_64 --breed=yum --mirror=http://192.168.31.102/yum_repos/my/Packages/
Associate the repo created in the previous step with the specified profile. If there are multiple repositories, you can specify multiple
sudo cobbler profile edit --name=CentOS-6.6-x86_64 --repos="my_repo"
Then synchronize the repository.
sudo cobbler reposync
In this step, you must note that I am using a self-created YUM source. If you want to specify the CentOS source, this step will be very slow and requires a large physical disk, this step synchronizes many rpm packages.
Finally, the test is done, use Cobbler to install a physical machine, and then view the/etc/yum. repos. d/cobbler-config.repo file on the newly installed machine, as shown below
[core-0]name=core-0baseurl=http://192.168.31.102/cobbler/ks_mirror/CentOS-6.6-x86_64enabled=1gpgcheck=0priority=1[my_repo]name=my_repobaseurl=http://192.168.31.102/cobbler/repo_mirror/my_repoenabled=1priority=99gpgcheck=0
In this case, you can use 'yum install helloworld' to install the software packages in our own repository.