Skip to content

Commit

Permalink
Update openstack_extras to 322d8c6ba409a4b486be0fb62fda54286dbf15ca
Browse files Browse the repository at this point in the history
322d8c6ba409a4b486be0fb62fda54286dbf15ca Expose uca_location to override mirror location

Change-Id: Ia63beb91dc8af473427b9e52499c767e04a5ec7a
  • Loading branch information
jguiditta committed Jul 11, 2016
1 parent daef6c2 commit 3418a7c
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Puppetfile
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ mod 'opendaylight',
:git => 'https://github.com/dfarrell07/puppet-opendaylight.git'

mod 'openstack_extras',
:commit => 'c7002ebb4c92521cbab46158c9350d79036fbda6',
:commit => '322d8c6ba409a4b486be0fb62fda54286dbf15ca',
:git => 'https://github.com/openstack/puppet-openstack_extras.git'

mod 'openstacklib',
Expand Down
9 changes: 7 additions & 2 deletions openstack_extras/manifests/repo/debian/ubuntu.pp
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,18 @@
# installing any packages.
# Defaults to false
#
# [*uca_location*]
# (optional) Ubuntu Cloud Archives repository location.
# Defaults to $::openstack_extras::repo::debian::params::uca_location
#
class openstack_extras::repo::debian::ubuntu(
$release = $::openstack_extras::repo::debian::params::release,
$manage_uca = true,
$repo = 'updates',
$source_hash = {},
$source_defaults = {},
$package_require = false
$package_require = false,
$uca_location = $::openstack_extras::repo::debian::params::uca_location,
) inherits openstack_extras::repo::debian::params {
if $manage_uca {
exec { 'installing ubuntu-cloud-keyring':
Expand All @@ -56,7 +61,7 @@
notify => Exec['apt_update'],
}
apt::source { $::openstack_extras::repo::debian::params::uca_name:
location => $::openstack_extras::repo::debian::params::uca_location,
location => $uca_location,
release => "${::lsbdistcodename}-${repo}/${release}",
repos => $::openstack_extras::repo::debian::params::uca_repos,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
features:
- When deploying UCA repositories, allow to customize the URL.
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@

describe 'with overridden uca repo name' do
let :params do
default_params.merge!({ :repo => 'proposed' })
default_params.merge!({ :repo => 'proposed',
:uca_location => 'http://mirror.dfw.rax.openstack.org/ubuntu-cloud-archive' })
end

it { is_expected.to contain_apt__source('ubuntu-cloud-archive').with(
:location => 'http://ubuntu-cloud.archive.canonical.com/ubuntu',
:location => 'http://mirror.dfw.rax.openstack.org/ubuntu-cloud-archive',
:release => 'trusty-proposed/liberty',
:repos => 'main',
)}
Expand Down

0 comments on commit 3418a7c

Please sign in to comment.