Files
puppet-openstack/manifests/repo.pp
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

24 lines
704 B
Puppet

#
# Sets up the package repos necessary to use OpenStack
# on RHEL-alikes and Ubuntu
#
class openstack::repo(
$release = 'grizzly'
) {
if $release == 'grizzly' {
if $::osfamily == 'RedHat' {
include openstack::repo::rdo
} elsif $::operatingsystem == 'Ubuntu' {
class {'openstack::repo::uca': release => $release }
}
} elsif $release == 'folsom' {
if $::osfamily == 'RedHat' {
include openstack::repo::epel
} elsif $::operatingsystem == 'Ubuntu' {
class {'openstack::repo::uca': release => $release }
}
} else {
notify { "WARNING: openstack::repo parameter 'release' of '${release}' not recognized; please use 'grizzly' or 'folsom'.": }
}
}