Merge "Add support for Ubuntu Xenial"

This commit is contained in:
Jenkins 2016-03-29 08:03:35 +00:00 committed by Gerrit Code Review
commit c9f8a7a956
3 changed files with 16 additions and 8 deletions

View File

@ -187,10 +187,14 @@ Pin: version $FACTER_VERSION
Pin-Priority: 501
EOF
puppet_deb=puppetlabs-release-${lsbdistcodename}.deb
wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb
dpkg -i $puppet_deb
rm $puppet_deb
# NOTE(pabelanger): Puppetlabs does not support ubuntu xenial. Instead use
# the version of puppet ship by xenial.
if [ $lsbdistcodename != 'xenial']; then
puppet_deb=puppetlabs-release-${lsbdistcodename}.deb
wget http://apt.puppetlabs.com/$puppet_deb -O $puppet_deb
dpkg -i $puppet_deb
rm $puppet_deb
fi;
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get --option 'Dpkg::Options::=--force-confold' \

View File

@ -126,7 +126,11 @@ class openstack_project::jenkins_params {
$libxml2_dev_package = 'libxml2-dev'
$libxslt_dev_package = 'libxslt1-dev'
$libffi_dev_package = 'libffi-dev'
$maven_package = 'maven2'
if ($::operatingsystem == 'Ubuntu') and ($::operatingsystemrelease >= '16.04') {
$maven_package = 'maven'
} else {
$maven_package = 'maven2'
}
# For tooz unit tests
$memcached_package = 'memcached'
# For tooz unit tests (and others that use redis)

View File

@ -321,9 +321,9 @@ class openstack_project::template (
# Which Puppet do I take?
# Take $puppet_version and pin to that version
if ($::osfamily == 'Debian') {
# Note(JR): Puppetlabs does not support Ubuntu Vivid currently, but it
# also seems that distro packages are recent enough
if ($::operatingsystemrelease != '15.04') {
# NOTE(pabelanger): Puppetlabs only support Ubuntu Trusty and below,
# anything greater will use the OS version of puppet.
if ($::operatingsystemrelease < '15.04') {
apt::source { 'puppetlabs':
location => 'http://apt.puppetlabs.com',
repos => 'main',