I have the following in the centos.repo:
centos.repo
[CentOS-Base] name=CentOS 7 Base Mirror baseurl=http://mirror.centos.org/centos/7/os/x86_64/ enabled=1 gpgch