使用 puppet 清单,如何确保官方 cent“base” repo 存在。
添加内部 cent repo 的示例
http://seriousbirder.com/blogs/how-to-create-a-puppet-yum-repo-module/
Debian 系统示例
答案1
如果您查看 /etc/yum.repos.d/CentOS-Base.repo,您将看到条目与您提供的链接中的示例完全对应:http://seriousbirder.com/blogs/how-to-create-a-puppet-yum-repo-module/
例如:
yumrepo {
"CentOS6-Base":
descr => "CentOS-\$releasever - Base",
mirrorlist => "http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os",
gpgcheck => "1",
gpgkey => "file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6",
enabled => "1";
} ### End yumrepo::