Puppet: System Administration Automated

Support

Ticket #1023 (closed enhancement: duplicate)

Opened 11 months ago

Last modified 11 months ago

yumrepo option to purge unmanaged repos

Reported by: abnormaliti Assigned to: community
Priority: normal Milestone:
Component: library Version: 0.24.1
Severity: normal Keywords: yum
Cc: Triage Stage: Needs more info
Attached Patches: None Complexity: Unknown

Description

it would be nice if there was a way to purge any yum repo's that were not managed by puppet.

file { "/etc/yum.repos.d": ensure => directory, recurse => true, purge => true }

a file type purge would work if the resulting repo file from a yumrepo type was labeled as a file resource too.

Change History

01/22/08 03:35:57 changed by jamtur01

  • stage changed from Unreviewed to Needs more info.

01/22/08 03:46:18 changed by abnormaliti

Thankyou i was not aware of that type, however it doesn't do it. It raises an error.

err: Could not create yumrepo: Parameter purge failed: Purging is only supported on types that accept 'ensure'

01/22/08 04:00:52 changed by jamtur01

  • status changed from new to closed.
  • resolution set to duplicate.

Closing as duplicate of #949