添加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