In puppet 6 they have moved out a lot of builtin
resources to their owns modules since they didn't
belong in the Puppet core however in deb/rpm packaging
they are still bundled in but not when installing from
gem.
So we must add them in here so that they are available
in our unit tests.
Change-Id: I7060191395eff9c1e3146cb10594a38bef113117
The install_modules_unit.sh which is called by the
spec helper to install the modules for the unit
tests checks the PUPPET_MAJ_VERSION variable when
selecting the puppet base path.
The zuul jobs is not configured to give this env
variable so unit tests failed when using the puppet
base path for v3 which was /etc/puppet instead of
/etc/puppetlabs/code that is valid for v4 and v5.
We don't test v3 specifically so the check
should not be needed.
Change-Id: I6a9c53d58f05dfbb8646ad36d3bf5f6bad5588e1
When deploying Puppet modules in unit jobs, let's also list the modules
so we can know which versions are deployed.
Change-Id: I22ecd983c3164db5c0fa233a02ee5de1eb1e70bb
This makes gem binary usage consistent (i.e, r10k) and prevents
encoutering a command not found error.
Change-Id: I3ef01274417cd88403d71af0e6216850d77cc81c
Closes-Bug: #1592113
PUPPET_VERSION is already used by puppetlabs/beaker and we don't want to
overlap with this variable. So let's rename it to PUPPET_MAJ_VERSION to
avoid strange behaviors when running Beaker jobs.
Change-Id: I74be2eec2be53f59af196f37ee348ff6856af8bc
In order to help be able to determine what part of the script a failure
occurs in, this change adds a print header function and updates the
shell scripts to print some header information for various actions.
Change-Id: I8e622c4d1c9c03aa3dbcb27712a346ce3284003f
Those small typos and non-idiom can lead to unexpected behavior, better
fix them now.
Change-Id: I218ba0f3bba832d0929fb52c21f7e66774da494e
Closes-Bug: #1561539
We need to export PUPPET_BASE_PATH otherwise beaker & unit CI jobs will
fail to copy modules in the right path:
mv /modules/openstack-integration /modules/openstack_integration
Change-Id: I1c99de3f99367fb7677977fee4c5cf08afda5977
This commit puts in place the ability to run
puppet-openstack-integation against Pupept 4 by making release files
and paths dynamic based off an environment variable, PUPPET_VERSION.
Configurability is required because of the way Puppet 4 is installed,
as an all-in-one package known as "PC1" or "puppet-agent" which
includes Ruby, Facter 3, and other dependencies.
Change-Id: Id3af52f4938378a5a620765321cecd547e079660
readlink on OSX does not support the -f option. As an alternative, we
can use pwd -P to resolve the path.
Change-Id: Ibaeadea9685f7a9603198ed1a509176cf70f9b21
Closes-Bug: #1506504