使用Cobbler部署yum倉庫

添加yum倉庫

Base

# cobbler repoadd --name=CentOS-Base --mirror=http://mirrors.aliyun.com/repo/Centos-7.repo--arch=x86_64 --breed=yum

update

# cobbler repoadd --name=update--mirror=http://mirrors.aliyun.com/centos/7.2.1511/updates/x86_64/--arch=x86_64 --breed=yum

Eple

# cobbler repoadd --name=epel --mirror=http://mirrors.aliyun.com/repo/epel-7.repo--arch=x86_64 --breed=yum

Openstack

# cobbler repoadd --name=openstack--mirror=http://mirrors.aliyun.com/centos/7.2.1511/cloud/x86_64/openstack-liberty/--arch=x86_64 --breed=yum

# cobbler repolist

   CentOS-Base

   epel

   openstack

   update

同步到本地倉庫

# cobblerreposync

時間很長,注意磁盤

repo添加到profile

# cobblerprofile edit --name=CentOS-7.1-x86_64 --repos="CentOS-Base epel openstackupdate" --kickstart=/var/lib/cobbler/kickstarts/CentOS-7.1-x86_64.cfg


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章