Library gem used by Infra puppet modules
Go to file
Colleen Murphy 1226b84c9e Use system-config script to install puppet
Previously, we were using the helper methods provided by beaker to
install puppet. When we moved to Xenial but stayed on puppet 3, we
changed the spec helper to install puppet 3 from the Xenial repos. This
duplicates effort that we have already written into install_puppet.sh,
and it doesn't reflect how we really install puppet in production. This
patch changes the install_infra_puppet method to use the install script
in system-config, so that when we make changes to how we install puppet
or what version we install, we only have to do it in one place. This
passes the test environment to the install command so that any
environment variables we set in the job (for example, if we make the
puppet version configurable through environment variables) make it
through. Also add logic to support puppet 4 by adding the new bin path
to the environment and using the appropriate modulepath.

We also need to modernize this helper for Zuulv3. zuul-cloner doesn't
exist on CI nodes any more, but we can rely on Zuul installing the
system-config repo beforehand, so just use that.

Change-Id: Ifa95171e580da96456d76900092ba924da626def
2018-06-15 00:06:25 +02:00
lib/puppet-openstack_infra_spec_helper Use system-config script to install puppet 2018-06-15 00:06:25 +02:00
.gitignore Initial commit 2016-06-21 16:19:09 -07:00
.gitreview Added .gitreview 2016-06-21 01:50:44 +00:00
CHANGELOG.md Initial commit 2016-06-21 16:19:09 -07:00
LICENSE Initial commit 2016-06-21 16:19:09 -07:00
README.md Initial commit 2016-06-21 16:19:09 -07:00
puppet-openstack_infra_spec_helper.gemspec Cap fog-aws < 2.0.0 for ruby 1.9 support 2017-11-28 15:09:50 -08:00
run_unit_tests.sh Cap rake below 12.3.0 2017-11-20 10:41:45 -08:00

README.md

Puppet-OpenStack-Infra Spec Helper

This gem provides transitive dependencies for the OpenStack Puppet Modules OpenStack Infra Modules.

Usage

Include this gem in your Gemfile:

gem 'puppet-openstack_infra_spec_helper',
  :git => 'https://git.openstack.org/openstack-infra/puppet-openstack_infra_spec_helper',
  :require => false