Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if manage_repo
yumrepo {'repo':
enabled => 1,
gpgcheck => 1,
}
end
package { 'package':
ensure => latest,
if Yumrepo['repo'] was defined:
require => Yumrepo['repo'],
end
}
@ripienaar

This comment has been minimized.

Copy link

ripienaar commented Dec 3, 2015

if manage_repo
   yumrepo{ ....}

   # its called 'setting defaults' in the docs
   Package { require => Yumrepo[...]}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.