1226b84c9e
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 |
||
---|---|---|
lib/puppet-openstack_infra_spec_helper | ||
.gitignore | ||
.gitreview | ||
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
puppet-openstack_infra_spec_helper.gemspec | ||
run_unit_tests.sh |
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