Emilien Macchi 9f38efa6e5 repos: update ceph repo apt pin url
A recent change [1] modified the default ceph repo from ceph.com to
download.ceph.com.

This patch aims to update the apt pin configuration so we download
packages from there and not from UCA.

[1] c59467369d

Change-Id: Iff1924cf4ddda67fe9519c971eba0603453bf100
2016-02-09 00:42:33 +00:00

48 lines
1.5 KiB
Puppet

class openstack_integration::repos {
case $::osfamily {
'Debian': {
include ::apt
class { '::openstack_extras::repo::debian::ubuntu':
repo => 'proposed',
release => 'mitaka', # drop this line when mitaka is stable released
package_require => true,
}
# 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',
}
}
'RedHat': {
class { '::openstack_extras::repo::redhat::redhat':
# yum-plugin-priorities is already managed by ::ceph::repo
manage_priorities => false,
manage_rdo => false,
repo_hash => {
'mitaka-current' => {
'baseurl' => 'https://trunk.rdoproject.org/centos7/5b/14/5b14d1e1de78ca59521b953f7e4e345665e6cea8_563ab7b1/',
'descr' => 'Mitaka Current',
'gpgcheck' => 'no',
'priority' => 1,
},
'delorean-deps' => {
'baseurl' => 'http://buildlogs.centos.org/centos/7/cloud/$basearch/openstack-liberty/',
'descr' => 'Liberty delorean-deps',
'gpgcheck' => 'no',
'priority' => 2,
},
}
}
}
default: {
fail("Unsupported osfamily (${::osfamily})")
}
}
class { '::ceph::repo': }
}