Only set up apt repos on Debian

This commit is the first in a series that aims to
add Fedora support to my existing openstack example file.
This commit is contained in:
Dan Bode 2012-04-11 12:52:38 -07:00
parent 067fdb49c7
commit f665a84837
1 changed files with 14 additions and 12 deletions

View File

@ -24,19 +24,21 @@ resources { 'nova_config':
purge => true,
}
# temporarily update this to use the
# latest tested packages from precise
# eventually, these packages need to be moved
# to the openstack module
stage { 'nova_ppa':
before => Stage['main']
}
if $::osfamily == 'Debian' {
# temporarily update this to use the
# latest tested packages from precise
# eventually, these packages need to be moved
# to the openstack module
stage { 'nova_ppa':
before => Stage['main']
}
class { 'apt':
stage => 'nova_ppa',
}
class { 'keystone::repo::trunk':
stage => 'nova_ppa',
class { 'apt':
stage => 'nova_ppa',
}
class { 'keystone::repo::trunk':
stage => 'nova_ppa',
}
}
# this is a hack that I have to do b/c openstack nova