Use Debian's repo when using Debian

manifests/repos.pp was using UCA also when setting-up under Debian.

Change-Id: If83a0c4999e6eb54d61d2b4a8fbcac793b6b7ebb
This commit is contained in:
Thomas Goirand 2018-04-03 13:44:31 +02:00
parent 26e37b055b
commit e398bfdfbf

@ -2,11 +2,25 @@ class openstack_integration::repos {
case $::osfamily { case $::osfamily {
'Debian': { 'Debian': {
include ::apt case $::operatingsystem {
class { '::openstack_extras::repo::debian::ubuntu': 'ubuntu': {
release => 'queens', include ::apt
package_require => true, class { '::openstack_extras::repo::debian::ubuntu':
uca_location => pick($::uca_mirror_host, 'http://ubuntu-cloud.archive.canonical.com/ubuntu'), release => 'queens',
package_require => true,
uca_location => pick($::uca_mirror_host, 'http://ubuntu-cloud.archive.canonical.com/ubuntu'),
}
}
'debian': {
include ::apt
class { '::openstack_extras::repo::debian::debian':
release => 'queens',
package_require => true,
}
}
default: {
fail("Unsupported operatingsystem (${::operatingsystem})")
}
} }
# Ceph is both packaged on UCA & ceph.com # Ceph is both packaged on UCA & ceph.com
# Official packages are on ceph.com so we want to make sure # Official packages are on ceph.com so we want to make sure