Example:
The file name ends with a .repo extension
[local_yum]
name=local_yumbaseurl=file:///mnt/cdrom
enabled=1
gpgckeck=1
gpgkey=file:///mnt/cdrom/RPM-GPG-KEY-CentOS-7
Example:
The file name ends with a .repo extension
[local_yum]
name=local_yum