Skip to content

Instantly share code, notes, and snippets.

@qwcode
Created December 5, 2014 18:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qwcode/100f8c0062f9ff52e97e to your computer and use it in GitHub Desktop.
Save qwcode/100f8c0062f9ff52e97e to your computer and use it in GitHub Desktop.
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
Copy link
Author

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