Emilien Macchi db9eb98232 repos: deploy newton repo on ubuntu xenial
First try to deploy OpenStack Newton on Ubuntu Xenial.

Depends-On: I2ad1b7ee1b9e3f23e37e4053751ca794e5107e73
Change-Id: I67d9cd9e22742659afd2fe2b1991c3ffd3e15c22
2016-06-15 19:01:27 +03:00

74 lines
2.3 KiB
Puppet

class openstack_integration::repos {
case $::osfamily {
'Debian': {
include ::apt
# Mitaka is already packaged in 16.04, so we don't need UCA.
if ($::operatingsystem == 'Ubuntu') and ! (versioncmp($::operatingsystemmajrelease, '16') >= 0) {
class { '::openstack_extras::repo::debian::ubuntu':
release => 'mitaka',
package_require => true,
}
} else {
class { '::openstack_extras::repo::debian::ubuntu':
release => 'newton',
repo => 'updates',
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':
manage_rdo => false,
manage_epel => false,
repo_hash => {
'newton-current' => {
'baseurl' => 'https://trunk.rdoproject.org/centos7-master/9e/28/9e2897e0e15115db73439d5c6e957333868a9d0e_a3ee549d/',
'descr' => 'Newton current',
'gpgcheck' => 'no',
'priority' => 1,
},
'newton-delorean-deps' => {
'baseurl' => 'http://cbs.centos.org/repos/cloud7-openstack-newton-testing/x86_64/os/',
'descr' => 'Newton delorean-deps',
'gpgcheck' => 'no',
'priority' => 1,
},
'mitaka-delorean-deps' => {
'baseurl' => 'http://buildlogs.centos.org/centos/7/cloud/$basearch/openstack-mitaka/',
'descr' => 'Mitaka delorean-deps',
'gpgcheck' => 'no',
'priority' => 2,
},
}
}
}
default: {
fail("Unsupported osfamily (${::osfamily})")
}
}
# 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
}
class { '::ceph::repo':
enable_sig => $enable_sig,
enable_epel => $enable_epel,
}
}