我想巩固我的存储库到一个新的存储库结构,我有这个工作在Puppet。 但是,旧的yum存储库信息仍然保留在节点上。 木偶能否强制拆除旧的百胜资料库? 你怎么做呢?
我认为最好的办法是使用ensure => absent的file资源
file { '/etc/yum.repos.d/crufty.repo': ensure => absent, }
它看起来不像yumrepo资源types支持删除(虽然你可以设置enabled => false ,这实际上会得到相同的行为)。