Files
puppet-openstack-integration/manifests/repos.pp
Emilien Macchi 04e82b16cf Align stars to deploy OpenStack trunk on June 22th
Squash (required) between 2 commits:

1) Promote RDO repository to latest trunk, so we have latest
keystonemiddleware.

2) copy_logs.sh: fix permissions
  - Do not fail if some logs are not created, sometimes Puppet catalog
    fails for some reasons, and services are not up, so logs are not
    created.
  - Make sure zuul will be able to rsync all logs without
    permission issue.

Change-Id: Ife6b27a3b776aaaa0be6aea43683c9e533866e02
2016-06-22 12:57:44 -04:00

68 lines
2.0 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/5f/fd/5ffd83808f7acba7856b8b83ce665940e70e62d9_40656fbe/',
'descr' => 'Newton current',
'gpgcheck' => 'no',
'priority' => 1,
},
'newton-delorean-deps' => {
'baseurl' => 'http://buildlogs.centos.org/centos/7/cloud/x86_64/openstack-newton',
'descr' => 'Newton delorean-deps',
'gpgcheck' => 'no',
'priority' => 1,
},
}
}
}
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,
}
}