Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
this line in spec_helper_acceptance.rb
puppet_module_install(:source => proj_root, :module_name => 'selenium')
translates to this in beaker output:
centos-65-x64 executed in 0.08 seconds
localhost $ scp /home/qwcode/p/cox/puppet-selenium centos-65-x64:/etc/puppet/modules/selenium {:ignore => [".bundle", ".git", ".idea", ".vagrant", ".vendor", "acceptance", "spec", "tests", "log", ".", ".."]}
Exited:
so not a timeout, but no exit code, and nothing makes it to /etc/puppet/modules/selenium
@qwcode

This comment has been minimized.

Copy link
Owner Author

@qwcode qwcode commented Dec 5, 2014

hosts.each do |host|
  on host, puppet('module', 'install', 'puppetlabs-stdlib'), { :acceptable_exit_codes => [0,1] }
  on host, puppet('module', 'install', '3fs-phantomjs'), { :acceptable_exit_codes => [0,1] }
end

# Git-backed dependencies
tmpdir = Dir.mktmpdir
#system "git clone git+ssh://vcs.ddtc.cmgdigital.com/git-repos/ops/puppet.git #{tmpdir}"
system "git archive --remote=git+ssh://vcs.ddtc.cmgdigital.com/git-repos/ops/puppet.git master | tar Cxf #{tmpdir} -"
scp_to hosts, "#{tmpdir}/modules/browsers", "/etc/puppet/modules/browsers"
scp_to hosts, "#{tmpdir}/modules/cmgd_java", "/etc/puppet/modules/cmgd_java"
scp_to hosts, "#{tmpdir}/modules/xvfb", "/etc/puppet/modules/xvfb"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment