Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(maint) Use correct providers to install gems #47

Conversation

HAIL9000
Copy link
Contributor

@HAIL9000 HAIL9000 commented Nov 8, 2016

Prior to this commit, the test setup was using the same gem
provider for PE and FOSS and all versions. Correct this so that
it using the correct provider with certain versions of puppet and
PE.

on host, puppet('resource package hocon provider=puppet_gem')
end
else
on host, puppet('resource package hocon provider=gem')
Copy link
Contributor

@bmjen bmjen Nov 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

right above this...

on host, puppet('resource package rubygems')

@HAIL9000 HAIL9000 force-pushed the maint/master/correct_hocon_gem_installation_in_acceptance_tests branch 2 times, most recently from 07d6416 to 831a19d Compare November 10, 2016 15:44
@@ -5,7 +5,18 @@
unless ENV['RS_PROVISION'] == 'no'
run_puppet_install_helper
hosts.each do |host|
on host, puppet('resource package hocon provider=puppet_gem')
puppet_version = (on default, puppet('--version')).output.chomp
Copy link
Contributor

@bmjen bmjen Nov 10, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @HAIL9000 this whole block needs to be

  if ENV['PUPPET_INSTALL_TYPE'] == 'pe' and Gem::Version.new(puppet_version) < Gem::Version.new('4.0.0')
    on host, puppet('resource package hocon provider=pe_gem')
  elsif Gem::Version.new(puppet_version) >= Gem::Version.new('4.0.0')
    on host, puppet('resource package hocon provider=puppet_gem')
  else
    on host, puppet('resource package hocon provider=gem')
  end

@HAIL9000 HAIL9000 force-pushed the maint/master/correct_hocon_gem_installation_in_acceptance_tests branch from 831a19d to 9b7b508 Compare November 11, 2016 00:06
Prior to this commit, the test setup was using the same gem
provider for PE and FOSS and all versions. Correct this so that
it using the correct provider with certain versions of puppet and
PE.
@HAIL9000 HAIL9000 force-pushed the maint/master/correct_hocon_gem_installation_in_acceptance_tests branch from 9b7b508 to a06d600 Compare November 11, 2016 00:12
@HAIL9000
Copy link
Contributor Author

@bmjen Updated! Looks like we're finally green!

@hunner hunner merged commit be6d43c into puppetlabs:master Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants