Skip to content

Instantly share code, notes, and snippets.

@glarizza
Created April 17, 2014 20:11
Show Gist options
  • Save glarizza/b2fc61a52a0c3f5edbff to your computer and use it in GitHub Desktop.
Save glarizza/b2fc61a52a0c3f5edbff to your computer and use it in GitHub Desktop.
[mike_claussen@mikemac2 puppetlabs-ntp]$ bundle exec gem list
*** LOCAL GEMS ***
addressable (2.3.6)
autoparse (0.3.3)
beaker (1.9.1)
beaker-rspec (2.2.2)
blimpy (0.6.7)
builder (3.2.2)
bundler (1.6.2)
CFPropertyList (2.2.7)
diff-lcs (1.2.5)
excon (0.31.0)
extlib (0.9.16)
facter (1.7.3)
faraday (0.8.9)
fission (0.5.0)
fog (1.19.0)
formatador (0.2.4)
google-api-client (0.6.4)
hiera (1.2.1)
highline (1.6.21)
inifile (2.0.2)
json (1.8.1)
json_pure (1.8.1)
jwt (0.1.11)
launchy (2.4.2)
metaclass (0.0.4)
mime-types (1.25.1)
minitar (0.5.4)
mocha (1.0.0)
1 HOSTS:
multi_json (1.9.2)
multipart-post (1.2.0)
net-scp (1.2.0)
net-ssh (2.8.0)
nokogiri (1.5.10)
puppet (3.3.1)
puppet-lint (0.3.2)
puppetlabs_spec_helper (0.4.1)
rake (10.3.0)
rbvmomi (1.8.1)
rgen (0.6.6)
rspec (2.14.1)
rspec-core (2.14.8)
rspec-expectations (2.14.5)
rspec-mocks (2.14.6)
rspec-puppet (1.0.1)
ruby-hmac (0.4.0)
serverspec (1.0.0)
signet (0.4.5)
specinfra (1.0.5)
thor (0.19.1)
trollop (2.0)
unf (0.1.4)
unf_ext (0.0.6)
uuidtools (2.1.4)
[mike_claussen@mikemac2 puppetlabs-ntp]$ vi spec/acceptance/nodesets/default.yml
[mike_claussen@mikemac2 puppetlabs-ntp]$ bundle exec rspec spec/acceptance/
Hypervisor for centos-64-x64 is vagrant
Beaker::Hypervisor, found some vagrant boxes to create
created Vagrantfile for VagrantHost centos-64-x64
Password:
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
Bringing machine 'centos-64-x64' up with 'vmware_fusion' provider...
==> centos-64-x64: Cloning VMware VM: 'bootstrap'. This can take some time...
==> centos-64-x64: Verifying vmnet devices are healthy...
==> centos-64-x64: Preparing network adapters...
==> centos-64-x64: Starting the VMware VM...
==> centos-64-x64: Waiting for the VM to finish booting...
==> centos-64-x64: The machine is booted and ready!
==> centos-64-x64: Forwarding ports...
centos-64-x64: -- 22 => 2222
==> centos-64-x64: Setting hostname...
==> centos-64-x64: Configuring network adapters within the VM...
==> centos-64-x64: Waiting for HGFS kernel module to load...
==> centos-64-x64: Enabling and configuring shared folders...
centos-64-x64: -- /Users/mike_claussen/bootstrap/etc/puppet/modules/puppetlabs-ntp/.vagrant/beaker_vagrant_files/default.yml: /vagrant
==> centos-64-x64: Checking for host entries
==> centos-64-x64: adding to (/etc/hosts) : 10.255.72.98 centos-64-x64 # VAGRANT: 9fe971efcd5fc2d2c49377c38367539d (centos-64-x64) / /Users/mike_claussen/bootstrap/etc/puppet/modules/puppetlabs-ntp/.vagrant/beaker_vagrant_files/default.yml/.vagrant/machines/centos-64-x64/vmware_fusion/e53c5b59-d9c7-4a56-8bd0-5c8412e5e079/centos-64-x64-fusion503.vmx
configure vagrant boxes (set ssh-config, switch to root user, hack etc/hosts)
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
Give root a copy of current user's keys, on centos-64-x64
centos-64-x64 13:07:08$ sudo su -c "cp -r .ssh /root/."
Allocated a PTY on 10.255.72.98 for " sudo su -c \"cp -r .ssh /root/.\" "
centos-64-x64 executed in 0.11 seconds
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
centos-64-x64 13:07:09$ echo '127.0.0.1 localhost localhost.localdomain
10.255.72.98 centos-64-x64
' > /etc/hosts
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:09$ which curl
/usr/bin/curl
centos-64-x64 executed in 0.01 seconds
centos-64-x64 13:07:09$ which ntpdate
/usr/sbin/ntpdate
centos-64-x64 executed in 0.01 seconds
centos-64-x64 13:07:09$ yum -y install rubygems
Loaded plugins: fastestmirror, security
Determining fastest mirrors
* base: mirror.hmc.edu
* extras: mirror.san.fastserv.com
* updates: mirror.spro.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package rubygems.noarch 0:1.3.7-1.el6 will be updated
---> Package rubygems.noarch 0:1.3.7-5.el6 will be an update
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Updating:
rubygems noarch 1.3.7-5.el6 base 207 k
Transaction Summary
================================================================================
Upgrade 1 Package(s)
Total download size: 207 k
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
Updating : rubygems-1.3.7-5.el6.noarch 1/2
Cleanup : rubygems-1.3.7-1.el6.noarch 2/2
Verifying : rubygems-1.3.7-5.el6.noarch 1/2
Verifying : rubygems-1.3.7-1.el6.noarch 2/2
Updated:
rubygems.noarch 0:1.3.7-5.el6
Complete!
centos-64-x64 executed in 7.44 seconds
centos-64-x64 13:07:17$ gem install puppet --no-ri --no-rdoc
Successfully installed facter-2.0.1
Successfully installed json_pure-1.8.1
Successfully installed hiera-1.3.2
Successfully installed rgen-0.6.6
Successfully installed puppet-3.5.1
5 gems installed
centos-64-x64 executed in 15.97 seconds
centos-64-x64 13:07:33$ mkdir -p /etc/puppet/modules
centos-64-x64 executed in 0.03 seconds
centos-64-x64 13:07:33$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.14 seconds
centos-64-x64 13:07:33$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:33$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:33$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:33$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.10 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.10 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.08 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.08 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
centos-64-x64 13:07:34$ env PATH="/usr/bin:/opt/puppet-git-repos/hiera/bin:${PATH}" RUBYLIB="/opt/puppet-git-repos/hiera/lib:/opt/puppet-git-repos/hiera-puppet/lib:${RUBYLIB}" facter osfamily
RedHat
centos-64-x64 executed in 0.09 seconds
localhost $ scp /Users/mike_claussen/bootstrap/etc/puppet/modules/puppetlabs-ntp centos-64-x64:/etc/puppet/modules/ntp {}
removing temporory ssh-config files per-vagrant box
Destroying vagrant boxes
WARNING: Could not load IOV methods. Check your GSSAPI C library for an update
WARNING: Could not load AEAD methods. Check your GSSAPI C library for an update
WARNING: Nokogiri was built against LibXML version 2.8.0, but has dynamically loaded 2.9.1
==> centos-64-x64: Stopping the VMware VM...
==> centos-64-x64: Deleting the VM...
==> centos-64-x64: Removing hosts
Finished in 1 minute 27.98 seconds
0 examples, 0 failures
/Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.0/lib/net/scp.rb:365:in `block (3 levels) in start_command': SCP did not finish successfully (1): (Net::SCP::Error)
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/channel.rb:591:in `call'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/channel.rb:591:in `do_close'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:586:in `channel_close'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:465:in `dispatch_incoming_packets'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:221:in `preprocess'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:205:in `process'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:169:in `block in loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:169:in `loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/session.rb:169:in `loop'
from /Library/Ruby/Gems/2.0.0/gems/net-ssh-2.8.0/lib/net/ssh/connection/channel.rb:269:in `wait'
from /Library/Ruby/Gems/2.0.0/gems/net-scp-1.2.0/lib/net/scp.rb:284:in `upload!'
from /Library/Ruby/Gems/2.0.0/gems/beaker-1.9.1/lib/beaker/ssh_connection.rb:167:in `scp_to'
from /Library/Ruby/Gems/2.0.0/gems/beaker-1.9.1/lib/beaker/host.rb:193:in `do_scp_to'
from /Library/Ruby/Gems/2.0.0/gems/beaker-1.9.1/lib/beaker/dsl/helpers.rb:202:in `scp_to'
from /Library/Ruby/Gems/2.0.0/gems/beaker-rspec-2.2.2/lib/beaker-rspec/beaker_shim.rb:79:in `block in puppet_module_install'
from /Library/Ruby/Gems/2.0.0/gems/beaker-rspec-2.2.2/lib/beaker-rspec/beaker_shim.rb:78:in `each'
from /Library/Ruby/Gems/2.0.0/gems/beaker-rspec-2.2.2/lib/beaker-rspec/beaker_shim.rb:78:in `puppet_module_install'
from /Users/mike_claussen/bootstrap/etc/puppet/modules/puppetlabs-ntp/spec/spec_helper_acceptance.rb:28:in `block (2 levels) in <top (required)>'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:21:in `instance_eval'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:21:in `run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `block in run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `each'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:85:in `run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/hooks.rb:446:in `run_hook'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:27:in `block in run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/reporter.rb:58:in `report'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/command_line.rb:25:in `run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:80:in `run'
from /Library/Ruby/Gems/2.0.0/gems/rspec-core-2.14.8/lib/rspec/core/runner.rb:17:in `block in autorun'
[mike_claussen@mikemac2 puppetlabs-ntp]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment