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
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
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
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
* 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>
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
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
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
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
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