Adam Compton 190e3e0ea7 Adding an "openstack::repo" class which automatically sets up repos
Tested with the following combinations:

- RHEL-alikes, OpenStack Folsom
- RHEL-alikes, OpenStack Grizzly
- Fedora 18, OpenStack Grizzly (F18 includes folsom)
- Ubuntu 12.04+, OpenStack Folsom
- Ubuntu 12.04+, OpenStack Grizzly

Change-Id: I737da83d138695a178aaf3fa711a6e08a678adde
2013-06-11 20:49:38 -07:00

9 lines
260 B
Puppet

# Make sure to refresh yum database after adding repos and before installing packages
class openstack::repo::yum_refresh {
exec { 'yum_refresh':
command => '/usr/bin/yum clean all',
refreshonly => true,
}
Exec['yum_refresh'] -> Package<||>
}