e398bfdfbf
manifests/repos.pp was using UCA also when setting-up under Debian. Change-Id: If83a0c4999e6eb54d61d2b4a8fbcac793b6b7ebb
78 lines
2.5 KiB
Puppet
78 lines
2.5 KiB
Puppet
class openstack_integration::repos {
|
|
|
|
case $::osfamily {
|
|
'Debian': {
|
|
case $::operatingsystem {
|
|
'ubuntu': {
|
|
include ::apt
|
|
class { '::openstack_extras::repo::debian::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
|
|
# Official packages are on ceph.com so we want to make sure
|
|
# Ceph will be installed from there.
|
|
apt::pin { 'ceph':
|
|
priority => 1001,
|
|
origin => 'download.ceph.com',
|
|
}
|
|
$enable_sig = false
|
|
$enable_epel = false
|
|
$ceph_mirror = pick($::ceph_mirror_host, 'http://download.ceph.com/debian-luminous/')
|
|
}
|
|
'RedHat': {
|
|
class { '::openstack_extras::repo::redhat::redhat':
|
|
manage_rdo => false,
|
|
manage_epel => false,
|
|
centos_mirror_url => $::centos_mirror_host,
|
|
repo_hash => {
|
|
'master-puppet-passed-ci' => {
|
|
'baseurl' => pick($::rdo_mirror_host, 'https://trunk.rdoproject.org/centos7-master/puppet-passed-ci/'),
|
|
'descr' => 'master puppet-passed-ci',
|
|
'gpgcheck' => 'no',
|
|
'priority' => 1,
|
|
},
|
|
'master-delorean-deps' => {
|
|
'baseurl' => pick($::deps_mirror_host, 'https://trunk.rdoproject.org/centos7-master/deps/latest/'),
|
|
'descr' => 'master delorean-deps',
|
|
'gpgcheck' => 'no',
|
|
},
|
|
},
|
|
}
|
|
$ceph_mirror = pick($::ceph_mirror_host, 'https://buildlogs.centos.org/centos/7/storage/x86_64/ceph-luminous/')
|
|
# On CentOS, deploy Ceph using SIG repository and get rid of EPEL.
|
|
# https://wiki.centos.org/SpecialInterestGroup/Storage/
|
|
if $::operatingsystem == 'CentOS' {
|
|
$enable_sig = true
|
|
$enable_epel = false
|
|
} else {
|
|
$enable_sig = false
|
|
$enable_epel = true
|
|
}
|
|
}
|
|
default: {
|
|
fail("Unsupported osfamily (${::osfamily})")
|
|
}
|
|
}
|
|
|
|
class { '::ceph::repo':
|
|
enable_sig => $enable_sig,
|
|
enable_epel => $enable_epel,
|
|
ceph_mirror => $ceph_mirror,
|
|
}
|
|
|
|
}
|