0d31b8f804
The latest version of beaker tries to manage sshd_config[1] in order to pass through environment variables. JJB also tries to manage sshd_config by adding Match blocks to securely allow root SSH[2]. When beaker tries to append the PermitUserEnvironment line after the Match blocks, SSH fails to open port 22 and beaker can't SSH in to the node[3]. This patch unpins beaker-rspec and adds set_env: false to the nodepool nodesets so that the set_env method is never called and does not try to mess with the sshd_config. [1] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L528 [2] http://git.openstack.org/cgit/openstack-infra/project-config/tree/jenkins/jobs/puppet-module-jobs.yaml#n42 [3] http://logs.openstack.org/61/185161/1/check/gate-puppet-nova-puppet-beaker-rspec-dsvm-centos7/cd81608/console.html.gz#_2015-05-22_22_05_46_933 [4] https://github.com/puppetlabs/beaker/blob/master/lib/beaker/host_prebuilt_steps.rb#L502 Change-Id: I48426b705732de9c310664fe7d1f5e6da82a0a5c
30 lines
746 B
Ruby
30 lines
746 B
Ruby
source 'https://rubygems.org'
|
|
|
|
group :development, :test do
|
|
gem 'puppetlabs_spec_helper', :require => false
|
|
gem 'rspec-puppet', '~> 2.1.0', :require => false
|
|
|
|
gem 'metadata-json-lint'
|
|
gem 'puppet-lint-absolute_classname-check'
|
|
gem 'puppet-lint-absolute_template_path'
|
|
gem 'puppet-lint-trailing_newline-check'
|
|
|
|
# Puppet 4.x related lint checks
|
|
gem 'puppet-lint-unquoted_string-check'
|
|
gem 'puppet-lint-leading_zero-check'
|
|
gem 'puppet-lint-variable_contains_upcase'
|
|
gem 'puppet-lint-numericvariable'
|
|
|
|
gem 'beaker-rspec', :require => false
|
|
gem 'json'
|
|
gem 'webmock'
|
|
end
|
|
|
|
if puppetversion = ENV['PUPPET_GEM_VERSION']
|
|
gem 'puppet', puppetversion, :require => false
|
|
else
|
|
gem 'puppet', :require => false
|
|
end
|
|
|
|
# vim:ft=ruby
|