I want to consolidate my repository into a new repository structure and I have this working in Puppet. However, the old yum repository information still remains on the nodes. Can puppet force the removal of the old yum repository information? How do you do it?
Remove old puppet repo configuration
puppetyum
Best Answer
I think the best way to do this is to use a
file
resource withensure => absent
, as inIt doesn't look as if the
yumrepo
resource type supports removal (although you could setenabled => false
, which in practice would get you the same behavior).