16 Commits

Author SHA1 Message Date
Tobias Urdin
6470697839 Prepare repos to rocky
Make default use rocky, just a preparation
to so it's not forgotten when its released.

We still pin version in p-o-i so we should be fine.

Change-Id: Ie687a1386e09a2db86caab57cde938224f79777e
2018-04-09 11:40:02 +02:00
Mohammed Naser
fbe6290b4e
Bump default release to Pike
Change-Id: Ie362d8ba62653c15b5e6d89fa8db67772b2e97d1
2017-09-05 12:34:17 -04:00
Emilien Macchi
46525780e9 Bump default release to Ocata
Bump default releases of repos from newton to ocata.

Change-Id: Id0b0aa2d5c17740d92976cdfe41b2b213ced1cd6
2017-01-25 11:50:59 -05:00
Alex Schultz
69dc5e3a5f Fix unit tests for apt module
This change include the declaration of the lsbdisrelease fact for debian
based systems due to the usage in puppetlabs-apt 2.3.0.  Previously this
fact was not used so tests passed under Puppet 4.5+.

Change-Id: Id1b5362ea088ce1978e78e4b14159e2310c19825
2016-09-26 11:24:31 -06:00
Emilien Macchi
46486f15a1 repo: switch defaults to Newton
Newton is about to be released, let's bump the default version.

Change-Id: If052e7ce86512d038e84464f2e1992a5ba591de7
2016-09-17 13:25:46 -04:00
Paul Belanger
ff76ef266a Expose uca_location to override mirror location
Change-Id: I0cfd805a638388f36bafacd4bddaba5c28c63e6b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2016-07-05 18:34:57 +00:00
Emilien Macchi
3626baf4a3 bump to mitaka
In openstack_extras_repo_spec, we hardcode the version of the release.
It was liberty, it's now mitaka since our recent CI bump.

Change-Id: I90b6f0bbeb76c870f0ab26cf0ff9bdcbb0cb5ca8
Partial-Bug: #1535382
2016-01-20 16:01:03 -05:00
Alex Schultz
9823bd1d51 Add os_service_default fact for tests
This change adds the os_service_default for tests as they are currently
failing due to a pick() failing because os_service_default is not
defined as a fact.

Change-Id: Ib095e946a964e29e7fb624ca6e6dd24477787a1e
2016-01-08 16:21:18 -07:00
Emilien Macchi
91fac8eab8 Bump UCA & RDO to Liberty GA
* Bump from Kilo to Liberty by default for RDO repository, Debian and
  UCA.
* Update GPG KEY files

Change-Id: I709ae10101b7156a60efc10e88866abe3e643417
2015-11-02 16:58:42 -05:00
Gael Chamoulaud
e005145df1 Fix RSpec 3.x syntax
* 41 conversions
    from: it { should ... }
      to: it { is_expected.to ... }

* 5 conversions
    from: it { should_not ... }
      to: it { is_expected.to_not ... }

Change-Id: I143aec9fa309b4bbd664fa205b044131cfadc03b
Signed-off-by: Gael Chamoulaud <gchamoul@redhat.com>
2015-09-14 09:53:00 +02:00
Emilien Macchi
13f29975a6 repo/ubuntu: allow to change uca repo name
UCA proposes two kinds of repositories:
'proposed': not stable release but enough to be tested
'updates': considered as stable release (default)

'updates' is default to keep backward compatibility.
Using 'proposed' would be useful to test the current trunk release of
OpenStack if UCA is providing packages for it.

Change-Id: I827cbf9d8c8ebbf7d36084c3b2a828afee7f2797
2015-09-02 13:41:21 -04:00
Colleen Murphy
d193b48e4a Fix source_defaults unit tests
The $source_defaults parameter only has meaning if $source_hash is also
set, otherwise create_resources will not create any resources. Without
this patch, the rspec-puppet tests for the source_defaults parameter
only tested the values of the apt::source resources that were not
created with create_resources and were therefore not using the
$source_defaults. The tests were passing because the default value of
the include_src parameter for apt::source is true, but the
$source_defaults parameter was never exercised. This patch corrects
those tests to actually use a $source_hash parameter and test
user-provided resources, not the default ones.

Change-Id: Ib6d17869f915171787c4f79679f5731edd3341de
2015-06-26 08:17:56 -07:00
Emilien Macchi
f68fc29524 repo: install keyring with an exec
We absolutely need:
Exec['apt_update'] -> Package<||>

To have the right OpenStack packages installed on Ubuntu and Debian.
So rather than installing with a Package resource, let's use an exec so
we are sure 'apt-get update' is run before any Package puppet resource.

Change-Id: Ic99304d546d1153e3244c1191bbfc52c2118dd5f
2015-06-26 11:15:51 -04:00
Emilien Macchi
6feda8b3e9 repo/apt: update to support apt 2.1.0 module
This patcha affects how we use puppetlabs-apt on Debian & Ubuntu
systems.

It:
* Drops 'required_packages' deprecated parameter
* Installs UCA keyring package *before* adding the new repo and run
  apt-get update
* For backward compatibility when package_require is True, make sure to
  not run `apt-get update` before the Package resource when manage_uca
  is True; because it would lead to a Circular issue.

Change-Id: I772d9929bcc379a7d1515a7a76658811720897dd
Closes-bug: #1468761
2015-06-25 10:46:09 -04:00
Emilien Macchi
610313ca08 repo: bump to Kilo by default
* Add RPM-GPG-KEY-RDO-Kilo for RPM repo.
* Default debian, ubuntu and RDO to Kilo release.

Change-Id: Id652c33953f3be1adeee592138fe6d0311d98426
2015-05-08 20:13:17 -04:00
Michael Chapman
0fc013377b Add hash based repository management
This patch adds support for managing repos
for major distros, separated by osfamily at
the top level and operatingsystem below that.

Since redhat, fedora and centos can all install
from rdo, which is the only current option, the
fedora and centos classes simply wrap around the
redhat one. This may change in the future if any
of them change (for example if RHOS support is
added and redhat is now different to fedora)

Change-Id: I5b18f393999d6f70757a2dfd9b12da049d6b64e1
2014-11-27 22:12:25 +11:00