Closed petems closed 9 years ago
Results from tests
$ bundle exec rspec spec/acceptance/class_spec.rb
Hypervisor for ubuntu-server-12042-x64 is vagrant
Beaker::Hypervisor, found some vagrant boxes to create
created Vagrantfile for VagrantHost ubuntu-server-12042-x64
Bringing machine 'ubuntu-server-12042-x64' up with 'virtualbox' provider...
==> ubuntu-server-12042-x64: Importing base box 'ubuntu-server-12042-x64-vbox4210-nocm'...
==> ubuntu-server-12042-x64: Matching MAC address for NAT networking...
==> ubuntu-server-12042-x64: Setting the name of the VM: defaultyml_ubuntu-server-12042-x64_1418690104087_82808
==> ubuntu-server-12042-x64: Clearing any previously set forwarded ports...
==> ubuntu-server-12042-x64: Fixed port collision for 22 => 2222. Now on port 2200.
==> ubuntu-server-12042-x64: Clearing any previously set network interfaces...
==> ubuntu-server-12042-x64: Preparing network interfaces based on configuration...
ubuntu-server-12042-x64: Adapter 1: nat
ubuntu-server-12042-x64: Adapter 2: hostonly
==> ubuntu-server-12042-x64: Forwarding ports...
ubuntu-server-12042-x64: 22 => 2200 (adapter 1)
==> ubuntu-server-12042-x64: Running 'pre-boot' VM customizations...
==> ubuntu-server-12042-x64: Booting VM...
==> ubuntu-server-12042-x64: Waiting for machine to boot. This may take a few minutes...
ubuntu-server-12042-x64: SSH address: 127.0.0.1:2200
ubuntu-server-12042-x64: SSH username: vagrant
ubuntu-server-12042-x64: SSH auth method: private key
ubuntu-server-12042-x64: Warning: Connection timeout. Retrying...
==> ubuntu-server-12042-x64: Machine booted and ready!
GuestAdditions versions on your host (4.3.20) and guest (4.2.10) do not match.
stdin: is not a tty
Reading package lists...
Building dependency tree...
Reading state information...
dkms is already the newest version.
The following NEW packages will be installed:
linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 13.1 MB of archives.
After this operation, 70.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.5.0-23 all 3.5.0-23.35~precise1 [12.1 MB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main linux-headers-3.5.0-23-generic amd64 3.5.0-23.35~precise1 [966 kB]
dpkg-preconfigure: unable to re-open stdin: No such file or directory
Fetched 13.1 MB in 28s (458 kB/s)
Selecting previously unselected package linux-headers-3.5.0-23.
(Reading database ... 53994 files and directories currently installed.)
Unpacking linux-headers-3.5.0-23 (from .../linux-headers-3.5.0-23_3.5.0-23.35~precise1_all.deb) ...
Selecting previously unselected package linux-headers-3.5.0-23-generic.
Unpacking linux-headers-3.5.0-23-generic (from .../linux-headers-3.5.0-23-generic_3.5.0-23.35~precise1_amd64.deb) ...
Setting up linux-headers-3.5.0-23 (3.5.0-23.35~precise1) ...
Setting up linux-headers-3.5.0-23-generic (3.5.0-23.35~precise1) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic
Copy iso file /Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso into the box /tmp/VBoxGuestAdditions.iso
stdin: is not a tty
mount: warning: /mnt seems to be mounted read-only.
Installing Virtualbox Guest Additions 4.3.20 - guest version is 4.2.10
stdin: is not a tty
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.3.20 Guest Additions for Linux............
VirtualBox Guest Additions installer
Removing installed version 4.2.10 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox DKMS kernel modules ...done.
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules ...done.
Doing non-kernel setup of the Guest Additions ...done.
You should restart your guest to make sure the new modules are actually used
Installing the Window System drivers
Could not find the X.Org or XFree86 Window System, skipping.
An error occurred during installation of VirtualBox Guest Additions 4.3.20. Some functionality may not work as intended.
In most cases it is OK that the "Window System drivers" installation failed.
stdin: is not a tty
==> ubuntu-server-12042-x64: Checking for guest additions in VM...
==> ubuntu-server-12042-x64: Setting hostname...
==> ubuntu-server-12042-x64: Configuring and enabling network interfaces...
==> ubuntu-server-12042-x64: Mounting shared folders...
ubuntu-server-12042-x64: /vagrant => /Users/peterso/Projects/puppet-sudo/.vagrant/beaker_vagrant_files/default.yml
configure vagrant boxes (set ssh-config, switch to root user, hack etc/hosts)
Give root a copy of current user's keys, on ubuntu-server-12042-x64
ubuntu-server-12042-x64 00:37:47$ sudo su -c "cp -r .ssh /root/."
Created ssh connection to 10.255.86.17, user: vagrant, opts: {:config=>"/var/folders/tl/6zyyz4jj6tzgjwssffc72hgh0000gq/T/ubuntu-server-12042-x6420141216-41986-j8sdt0", :user=>"vagrant"}
Allocated a PTY on 10.255.86.17 for "sudo su -c \"cp -r .ssh /root/.\""
ubuntu-server-12042-x64 executed in 0.07 seconds
Update /etc/ssh/sshd_config to allow root login
ubuntu-server-12042-x64 00:37:47$ sudo su -c "sed -ri 's/^#?PermitRootLogin no|^#?PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config"
Allocated a PTY on 10.255.86.17 for "sudo su -c \"sed -ri 's/^#?PermitRootLogin no|^#?PermitRootLogin yes/PermitRootLogin yes/' /etc/ssh/sshd_config\""
ubuntu-server-12042-x64 executed in 0.02 seconds
ubuntu-server-12042-x64 00:37:47$ sudo su -c "service ssh restart"
Allocated a PTY on 10.255.86.17 for "sudo su -c \"service ssh restart\""
ssh stop/waiting
ssh start/running, process 5184
ubuntu-server-12042-x64 executed in 0.03 seconds
ubuntu-server-12042-x64 00:37:51$ echo '127.0.0.1 localhost localhost.localdomain
10.255.86.17 ubuntu-server-12042-x64
' > /etc/hosts
Created ssh connection to 10.255.86.17, user: root, opts: {:config=>"/var/folders/tl/6zyyz4jj6tzgjwssffc72hgh0000gq/T/ubuntu-server-12042-x6420141216-41986-ggcg49", :user=>"root"}
ubuntu-server-12042-x64 executed in 0.05 seconds
ubuntu-server-12042-x64 00:37:51$ dpkg -s curl
Package: curl
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 343
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Version: 7.22.0-3ubuntu4
Replaces: curl-ssl
Provides: curl-ssl
Depends: libc6 (>= 2.14), libcurl3 (>= 7.16.2-1), zlib1g (>= 1:1.1.4)
Description: Get a file from an HTTP, HTTPS or FTP server
curl is a client to get files from servers using any of the supported
protocols. The command is designed to work without user interaction
or any kind of interactivity.
.
curl offers a busload of useful tricks like proxy support, user
authentication, FTP upload, HTTP post, file transfer resume and more.
Homepage: http://curl.haxx.se
Original-Maintainer: Ramakrishnan Muthukrishnan <rkrishnan@debian.org>
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ dpkg -s ntpdate
Package: ntpdate
Status: install ok installed
Priority: optional
Section: net
Installed-Size: 239
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: amd64
Source: ntp
Version: 1:4.2.6.p3+dfsg-1ubuntu3.1
Depends: netbase, libc6 (>= 2.14), libssl1.0.0 (>= 1.0.0)
Pre-Depends: dpkg (>= 1.15.7.2)
Recommends: lockfile-progs
Breaks: dhcp3-client (<< 4.1.0-1)
Conffiles:
/etc/dhcp/dhclient-exit-hooks.d/ntpdate 1d4c6af64ca132451ee95a08686ea111
/etc/logcheck/ignore.d.server/ntpdate 68d4df7cceb0e97bde87126c3a56b219
/etc/default/ntpdate 39415ec9778476795fdbb832adc43b9b
/etc/network/if-up.d/ntpdate 336a082b2390bda125d83c01fe125e93
Description: client for setting system time from NTP servers
NTP, the Network Time Protocol, is used to keep computer clocks
accurate by synchronizing them over the Internet or a local network,
or by following an accurate hardware receiver that interprets GPS,
DCF-77, NIST or similar time signals.
.
ntpdate is a simple NTP client that sets a system's clock to match
the time obtained by communicating with one or more NTP servers. It
is not sufficient, however, for maintaining an accurate clock in the
long run. ntpdate by itself is useful for occasionally setting the
time on machines that do not have full-time network access, such as
laptops.
.
If the full NTP daemon from the package "ntp" is installed, then
ntpdate is not necessary.
Homepage: http://support.ntp.org/
Original-Maintainer: Debian NTP Team <pkg-ntp-maintainers@lists.alioth.debian.org>
ubuntu-server-12042-x64 executed in 0.05 seconds
ubuntu-server-12042-x64 00:37:51$ echo "/usr/bin"
/usr/bin
ubuntu-server-12042-x64 executed in 0.00 seconds
ubuntu-server-12042-x64 00:37:51$ echo "/opt/puppet-git-repos/hiera/bin"
/opt/puppet-git-repos/hiera/bin
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ echo "/opt/puppet-git-repos/hiera/lib"
/opt/puppet-git-repos/hiera/lib
ubuntu-server-12042-x64 executed in 0.00 seconds
ubuntu-server-12042-x64 00:37:51$ echo "/opt/puppet-git-repos/hiera-puppet/lib"
/opt/puppet-git-repos/hiera-puppet/lib
ubuntu-server-12042-x64 executed in 0.00 seconds
setting local environment on ubuntu-server-12042-x64
ubuntu-server-12042-x64 00:37:51$ echo 'PermitUserEnvironment yes' >> /etc/ssh/sshd_config
ubuntu-server-12042-x64 executed in 0.00 seconds
ubuntu-server-12042-x64 00:37:51$ service ssh restart
ssh stop/waiting
ssh start/running, process 5213
ubuntu-server-12042-x64 executed in 0.02 seconds
ubuntu-server-12042-x64 00:37:51$ touch ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ grep -e RUBYLIB=.*\$RUBYLIB ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ grep RUBYLIB ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.00 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ echo "RUBYLIB=$RUBYLIB" >> ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.00 seconds
ubuntu-server-12042-x64 00:37:51$ grep -e PATH=.*\$PATH ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ grep PATH ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.00 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ echo "PATH=$PATH" >> ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.00 seconds
ubuntu-server-12042-x64 00:37:51$ grep -e PATH=.*\/usr\/bin:\/opt\/puppet\-git\-repos\/hiera\/bin ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.00 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ grep PATH ~/.ssh/environment
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ sed -i -e "s/PATH=/PATH=\/usr\/bin:\/opt\/puppet\-git\-repos\/hiera\/bin:/" ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ grep -e RUBYLIB=.*\/opt\/puppet\-git\-repos\/hiera\/lib:\/opt\/puppet\-git\-repos\/hiera\-puppet\/lib ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 1
ubuntu-server-12042-x64 00:37:51$ grep RUBYLIB ~/.ssh/environment
RUBYLIB=
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ sed -i -e "s/RUBYLIB=/RUBYLIB=\/opt\/puppet\-git\-repos\/hiera\/lib:\/opt\/puppet\-git\-repos\/hiera\-puppet\/lib:/" ~/.ssh/environment
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ dpkg -s lsb-release
Created ssh connection to 10.255.86.17, user: root, opts: {:config=>"/var/folders/tl/6zyyz4jj6tzgjwssffc72hgh0000gq/T/ubuntu-server-12042-x6420141216-41986-ggcg49", :user=>"root"}
Package: lsb-release
Status: install ok installed
Multi-Arch: foreign
Priority: extra
Section: misc
Installed-Size: 111
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Architecture: all
Source: lsb
Version: 4.0-0ubuntu20.2
Depends: python2.7, python (>= 2.7.1-0ubuntu2), python (<< 2.8)
Recommends: apt
Suggests: lsb
Description: Linux Standard Base version reporting utility
The Linux Standard Base (http://www.linuxbase.org/) is a standard
core system that third-party applications written for Linux can
depend upon.
.
The lsb-release command is a simple tool to help identify the Linux
distribution being used and its compliance with the Linux Standard Base.
LSB conformance will not be reported unless the required metapackages are
installed.
.
While it is intended for use by LSB packages, this command may also
be useful for programmatically distinguishing between a pure Debian
installation and derived distributions.
Homepage: http://www.linux-foundation.org/en/LSB
Original-Maintainer: Chris Lawrence <lawrencc@debian.org>
ubuntu-server-12042-x64 executed in 0.07 seconds
ubuntu-server-12042-x64 00:37:51$ which curl
/usr/bin/curl
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:37:51$ curl -O http://apt.puppetlabs.com/puppetlabs-release-$(lsb_release -c -s).deb
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 7382 100 7382 0 0 23927 0 --:--:-- --:--:-- --:--:-- 51985
ubuntu-server-12042-x64 executed in 0.45 seconds
ubuntu-server-12042-x64 00:37:52$ dpkg -i puppetlabs-release-$(lsb_release -c -s).deb
Selecting previously unselected package puppetlabs-release.
(Reading database ... 76740 files and directories currently installed.)
Unpacking puppetlabs-release (from puppetlabs-release-precise.deb) ...
Setting up puppetlabs-release (1.0-11) ...
ubuntu-server-12042-x64 executed in 0.33 seconds
ubuntu-server-12042-x64 00:37:52$ apt-get update
Hit http://us.archive.ubuntu.com precise Release.gpg
Get:1 http://us.archive.ubuntu.com precise-updates Release.gpg [198 B]
Get:2 http://us.archive.ubuntu.com precise-backports Release.gpg [198 B]
Get:3 http://security.ubuntu.com precise-security Release.gpg [198 B]
Get:4 http://apt.puppetlabs.com precise Release.gpg [876 B]
Hit http://us.archive.ubuntu.com precise Release
Get:5 http://security.ubuntu.com precise-security Release [53.0 kB]
Get:6 http://us.archive.ubuntu.com precise-updates Release [194 kB]
Get:7 http://apt.puppetlabs.com precise Release [22.4 kB]
Get:8 http://security.ubuntu.com precise-security/main Sources [119 kB]
Get:9 http://apt.puppetlabs.com precise/main Sources [75.2 kB]
Get:10 http://us.archive.ubuntu.com precise-backports Release [53.1 kB]
Get:11 http://security.ubuntu.com precise-security/restricted Sources [3,755 B]
Get:12 http://security.ubuntu.com precise-security/universe Sources [33.5 kB]
Get:13 http://apt.puppetlabs.com precise/dependencies Sources [9,250 B]
Get:14 http://apt.puppetlabs.com precise/main amd64 Packages [85.8 kB]
Get:15 http://security.ubuntu.com precise-security/multiverse Sources [1,805 B]
Get:16 http://security.ubuntu.com precise-security/main amd64 Packages [467 kB]
Hit http://us.archive.ubuntu.com precise/main Sources
Hit http://us.archive.ubuntu.com precise/restricted Sources
Hit http://us.archive.ubuntu.com precise/universe Sources
Hit http://us.archive.ubuntu.com precise/multiverse Sources
Hit http://us.archive.ubuntu.com precise/main amd64 Packages
Hit http://us.archive.ubuntu.com precise/restricted amd64 Packages
Hit http://us.archive.ubuntu.com precise/universe amd64 Packages
Hit http://us.archive.ubuntu.com precise/multiverse amd64 Packages
Hit http://us.archive.ubuntu.com precise/main i386 Packages
Hit http://us.archive.ubuntu.com precise/restricted i386 Packages
Get:17 http://apt.puppetlabs.com precise/dependencies amd64 Packages [6,421 B]
Get:18 http://apt.puppetlabs.com precise/main i386 Packages [85.8 kB]
Hit http://us.archive.ubuntu.com precise/universe i386 Packages
Hit http://us.archive.ubuntu.com precise/multiverse i386 Packages
Hit http://us.archive.ubuntu.com precise/main TranslationIndex
Hit http://us.archive.ubuntu.com precise/multiverse TranslationIndex
Hit http://us.archive.ubuntu.com precise/restricted TranslationIndex
Hit http://us.archive.ubuntu.com precise/universe TranslationIndex
Get:19 http://us.archive.ubuntu.com precise-updates/main Sources [481 kB]
Get:20 http://apt.puppetlabs.com precise/dependencies i386 Packages [6,420 B]
Ign http://apt.puppetlabs.com precise/dependencies TranslationIndex
Ign http://apt.puppetlabs.com precise/main TranslationIndex
Get:21 http://security.ubuntu.com precise-security/restricted amd64 Packages [8,929 B]
Get:22 http://security.ubuntu.com precise-security/universe amd64 Packages [104 kB]
Get:23 http://us.archive.ubuntu.com precise-updates/restricted Sources [7,985 B]
Get:24 http://us.archive.ubuntu.com precise-updates/universe Sources [111 kB]
Get:25 http://us.archive.ubuntu.com precise-updates/multiverse Sources [8,916 B]
Get:26 http://us.archive.ubuntu.com precise-updates/main amd64 Packages [856 kB]
Get:27 http://security.ubuntu.com precise-security/multiverse amd64 Packages [2,439 B]
Get:28 http://security.ubuntu.com precise-security/main i386 Packages [504 kB]
Get:29 http://us.archive.ubuntu.com precise-updates/restricted amd64 Packages [13.6 kB]
Get:30 http://us.archive.ubuntu.com precise-updates/universe amd64 Packages [250 kB]
Get:31 http://security.ubuntu.com precise-security/restricted i386 Packages [8,925 B]
Get:32 http://security.ubuntu.com precise-security/universe i386 Packages [111 kB]
Ign http://apt.puppetlabs.com precise/dependencies Translation-en_US
Get:33 http://security.ubuntu.com precise-security/multiverse i386 Packages [2,634 B]
Get:34 http://security.ubuntu.com precise-security/main TranslationIndex [208 B]
Get:35 http://security.ubuntu.com precise-security/multiverse TranslationIndex [199 B]
Get:36 http://security.ubuntu.com precise-security/restricted TranslationIndex [202 B]
Get:37 http://security.ubuntu.com precise-security/universe TranslationIndex [205 B]
Get:38 http://us.archive.ubuntu.com precise-updates/multiverse amd64 Packages [15.3 kB]
Get:39 http://us.archive.ubuntu.com precise-updates/main i386 Packages [886 kB]
Get:40 http://security.ubuntu.com precise-security/main Translation-en [207 kB]
Ign http://apt.puppetlabs.com precise/dependencies Translation-en
Ign http://apt.puppetlabs.com precise/main Translation-en_US
Ign http://apt.puppetlabs.com precise/main Translation-en
Get:41 http://security.ubuntu.com precise-security/multiverse Translation-en [1,299 B]
Get:42 http://security.ubuntu.com precise-security/restricted Translation-en [2,066 B]
Get:43 http://security.ubuntu.com precise-security/universe Translation-en [63.2 kB]
Get:44 http://us.archive.ubuntu.com precise-updates/restricted i386 Packages [13.5 kB]
Get:45 http://us.archive.ubuntu.com precise-updates/universe i386 Packages [258 kB]
Get:46 http://us.archive.ubuntu.com precise-updates/multiverse i386 Packages [15.5 kB]
Get:47 http://us.archive.ubuntu.com precise-updates/main TranslationIndex [10.6 kB]
Get:48 http://us.archive.ubuntu.com precise-updates/multiverse TranslationIndex [7,613 B]
Get:49 http://us.archive.ubuntu.com precise-updates/restricted TranslationIndex [7,297 B]
Get:50 http://us.archive.ubuntu.com precise-updates/universe TranslationIndex [8,333 B]
Get:51 http://us.archive.ubuntu.com precise-backports/main Sources [5,371 B]
Get:52 http://us.archive.ubuntu.com precise-backports/restricted Sources [14 B]
Get:53 http://us.archive.ubuntu.com precise-backports/universe Sources [40.6 kB]
Get:54 http://us.archive.ubuntu.com precise-backports/multiverse Sources [5,737 B]
Get:55 http://us.archive.ubuntu.com precise-backports/main amd64 Packages [5,477 B]
Get:56 http://us.archive.ubuntu.com precise-backports/restricted amd64 Packages [14 B]
Get:57 http://us.archive.ubuntu.com precise-backports/universe amd64 Packages [42.9 kB]
Get:58 http://us.archive.ubuntu.com precise-backports/multiverse amd64 Packages [5,405 B]
Get:59 http://us.archive.ubuntu.com precise-backports/main i386 Packages [5,470 B]
Get:60 http://us.archive.ubuntu.com precise-backports/restricted i386 Packages [14 B]
Get:61 http://us.archive.ubuntu.com precise-backports/universe i386 Packages [42.7 kB]
Get:62 http://us.archive.ubuntu.com precise-backports/multiverse i386 Packages [5,399 B]
Get:63 http://us.archive.ubuntu.com precise-backports/main TranslationIndex [202 B]
Get:64 http://us.archive.ubuntu.com precise-backports/multiverse TranslationIndex [202 B]
Get:65 http://us.archive.ubuntu.com precise-backports/restricted TranslationIndex [193 B]
Get:66 http://us.archive.ubuntu.com precise-backports/universe TranslationIndex [205 B]
Hit http://us.archive.ubuntu.com precise/main Translation-en
Hit http://us.archive.ubuntu.com precise/multiverse Translation-en
Hit http://us.archive.ubuntu.com precise/restricted Translation-en
Hit http://us.archive.ubuntu.com precise/universe Translation-en
Get:67 http://us.archive.ubuntu.com precise-updates/main Translation-en [375 kB]
Get:68 http://us.archive.ubuntu.com precise-updates/multiverse Translation-en [9,010 B]
Get:69 http://us.archive.ubuntu.com precise-updates/restricted Translation-en [2,982 B]
Get:70 http://us.archive.ubuntu.com precise-updates/universe Translation-en [145 kB]
Get:71 http://us.archive.ubuntu.com precise-backports/main Translation-en [4,911 B]
Get:72 http://us.archive.ubuntu.com precise-backports/multiverse Translation-en [4,838 B]
Hit http://us.archive.ubuntu.com precise-backports/restricted Translation-en
Get:73 http://us.archive.ubuntu.com precise-backports/universe Translation-en [34.2 kB]
Fetched 5,923 kB in 6s (862 kB/s)
Reading package lists...
ubuntu-server-12042-x64 executed in 12.04 seconds
ubuntu-server-12042-x64 00:38:04$ apt-get install -y puppet
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
augeas-lenses debconf-utils facter hiera libaugeas-ruby libaugeas-ruby1.8
libaugeas0 libjson-ruby libruby libruby1.8 libshadow-ruby1.8 puppet-common
ruby ruby-json ruby1.8 virt-what
Suggested packages:
augeas-doc augeas-tools puppet-el vim-puppet ruby-selinux libselinux-ruby1.8
librrd-ruby1.9.1 librrd-ruby1.8 ri ruby-dev ruby1.8-examples ri1.8
Recommended packages:
rdoc
The following NEW packages will be installed:
augeas-lenses debconf-utils facter hiera libaugeas-ruby libaugeas-ruby1.8
libaugeas0 libjson-ruby libruby libruby1.8 libshadow-ruby1.8 puppet
puppet-common ruby ruby-json ruby1.8 virt-what
0 upgraded, 17 newly installed, 0 to remove and 145 not upgraded.
Need to get 4,117 kB of archives.
After this operation, 17.0 MB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise/main augeas-lenses all 0.10.0-0ubuntu4 [175 kB]
Get:2 http://apt.puppetlabs.com/ precise/main facter all 2.3.0-1puppetlabs1 [85.5 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ precise/main debconf-utils all 1.5.42ubuntu1 [54.9 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main libruby1.8 amd64 1.8.7.352-2ubuntu1.6 [1,800 kB]
Get:5 http://apt.puppetlabs.com/ precise/main hiera all 1.3.4-1puppetlabs1 [12.9 kB]
Get:6 http://apt.puppetlabs.com/ precise/main puppet-common all 3.7.3-1puppetlabs1 [1,654 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main ruby1.8 amd64 1.8.7.352-2ubuntu1.6 [34.3 kB]
Get:8 http://us.archive.ubuntu.com/ubuntu/ precise/main ruby all 4.8 [5,054 B]
Get:9 http://us.archive.ubuntu.com/ubuntu/ precise/universe virt-what amd64 1.11-1 [12.9 kB]
Get:10 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas0 amd64 0.10.0-0ubuntu4 [171 kB]
Get:11 http://us.archive.ubuntu.com/ubuntu/ precise/main libaugeas-ruby1.8 amd64 0.3.0-1.1ubuntu4 [9,642 B]
Get:12 http://us.archive.ubuntu.com/ubuntu/ precise/universe libaugeas-ruby all 0.3.0-1.1ubuntu4 [3,354 B]
Get:13 http://us.archive.ubuntu.com/ubuntu/ precise/universe ruby-json amd64 1.6.3-1 [73.3 kB]
Get:14 http://us.archive.ubuntu.com/ubuntu/ precise/universe libjson-ruby all 1.6.3-1 [1,588 B]
Get:15 http://us.archive.ubuntu.com/ubuntu/ precise/main libruby all 4.8 [4,766 B]
Get:16 http://us.archive.ubuntu.com/ubuntu/ precise/main libshadow-ruby1.8 amd64 1.4.1-8build1 [9,416 B]
Get:17 http://apt.puppetlabs.com/ precise/main puppet all 3.7.3-1puppetlabs1 [9,624 B]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 4,117 kB in 5s (783 kB/s)
Selecting previously unselected package augeas-lenses.
(Reading database ... 76747 files and directories currently installed.)
Unpacking augeas-lenses (from .../augeas-lenses_0.10.0-0ubuntu4_all.deb) ...
Selecting previously unselected package debconf-utils.
Unpacking debconf-utils (from .../debconf-utils_1.5.42ubuntu1_all.deb) ...
Selecting previously unselected package libruby1.8.
Unpacking libruby1.8 (from .../libruby1.8_1.8.7.352-2ubuntu1.6_amd64.deb) ...
Selecting previously unselected package ruby1.8.
Unpacking ruby1.8 (from .../ruby1.8_1.8.7.352-2ubuntu1.6_amd64.deb) ...
Selecting previously unselected package ruby.
Unpacking ruby (from .../apt/archives/ruby_4.8_all.deb) ...
Selecting previously unselected package virt-what.
Unpacking virt-what (from .../virt-what_1.11-1_amd64.deb) ...
Selecting previously unselected package facter.
Unpacking facter (from .../facter_2.3.0-1puppetlabs1_all.deb) ...
Selecting previously unselected package libaugeas0.
Unpacking libaugeas0 (from .../libaugeas0_0.10.0-0ubuntu4_amd64.deb) ...
Selecting previously unselected package libaugeas-ruby1.8.
Unpacking libaugeas-ruby1.8 (from .../libaugeas-ruby1.8_0.3.0-1.1ubuntu4_amd64.deb) ...
Selecting previously unselected package libaugeas-ruby.
Unpacking libaugeas-ruby (from .../libaugeas-ruby_0.3.0-1.1ubuntu4_all.deb) ...
Selecting previously unselected package ruby-json.
Unpacking ruby-json (from .../ruby-json_1.6.3-1_amd64.deb) ...
Selecting previously unselected package libjson-ruby.
Unpacking libjson-ruby (from .../libjson-ruby_1.6.3-1_all.deb) ...
Selecting previously unselected package libruby.
Unpacking libruby (from .../archives/libruby_4.8_all.deb) ...
Selecting previously unselected package libshadow-ruby1.8.
Unpacking libshadow-ruby1.8 (from .../libshadow-ruby1.8_1.4.1-8build1_amd64.deb) ...
Selecting previously unselected package hiera.
Unpacking hiera (from .../hiera_1.3.4-1puppetlabs1_all.deb) ...
Selecting previously unselected package puppet-common.
Unpacking puppet-common (from .../puppet-common_3.7.3-1puppetlabs1_all.deb) ...
Selecting previously unselected package puppet.
Unpacking puppet (from .../puppet_3.7.3-1puppetlabs1_all.deb) ...
Processing triggers for man-db ...
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Processing triggers for ureadahead ...
ureadahead will be reprofiled on next reboot
Setting up augeas-lenses (0.10.0-0ubuntu4) ...
Setting up debconf-utils (1.5.42ubuntu1) ...
Setting up libruby1.8 (1.8.7.352-2ubuntu1.6) ...
Setting up ruby1.8 (1.8.7.352-2ubuntu1.6) ...
update-alternatives: using /usr/bin/ruby1.8 to provide /usr/bin/ruby (ruby) in auto mode.
Setting up ruby (4.8) ...
Setting up virt-what (1.11-1) ...
Setting up facter (2.3.0-1puppetlabs1) ...
Setting up libaugeas0 (0.10.0-0ubuntu4) ...
Setting up libaugeas-ruby1.8 (0.3.0-1.1ubuntu4) ...
Setting up libaugeas-ruby (0.3.0-1.1ubuntu4) ...
Setting up ruby-json (1.6.3-1) ...
Setting up libjson-ruby (1.6.3-1) ...
Setting up libruby (4.8) ...
Setting up libshadow-ruby1.8 (1.4.1-8build1) ...
Setting up hiera (1.3.4-1puppetlabs1) ...
Setting up puppet-common (3.7.3-1puppetlabs1) ...
Setting up puppet (3.7.3-1puppetlabs1) ...
* Starting puppet agent
puppet not configured to start, please edit /etc/default/puppet to enable
...done.
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu-server-12042-x64 executed in 14.69 seconds
ubuntu-server-12042-x64 00:38:19$ mkdir -p /etc/puppet
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:38:19$ echo '' >> /etc/puppet/hiera.yaml
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:38:19$ echo /etc/puppet/modules
/etc/puppet/modules
ubuntu-server-12042-x64 executed in 0.01 seconds
localhost $ scp /Users/peterso/Projects/puppet-sudo ubuntu-server-12042-x64:/etc/puppet/modules/sudo {:ignore => [".bundle", ".git", ".idea", ".vagrant", ".vendor", "acceptance", "spec", "tests", "log", ".", ".."]}
ubuntu-server-12042-x64 00:38:19$ puppet module install puppetlabs-stdlib
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Notice: Preparing to install into /etc/puppet/modules ...
Notice: Downloading from https://forgeapi.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/etc/puppet/modules
└── puppetlabs-stdlib (v4.4.0)
ubuntu-server-12042-x64 executed in 6.69 seconds
sudo class
default parameters
ubuntu-server-12042-x64 00:38:26$ uname -m
x86_64
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:38:26$ ls /etc/fedora-release
ls: cannot access /etc/fedora-release: No such file or directory
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 2
ubuntu-server-12042-x64 00:38:26$ ls /etc/redhat-release
ls: cannot access /etc/redhat-release: No such file or directory
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 2
ubuntu-server-12042-x64 00:38:26$ ls /etc/system-release
ls: cannot access /etc/system-release: No such file or directory
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 2
ubuntu-server-12042-x64 00:38:26$ ls /etc/SuSE-release
ls: cannot access /etc/SuSE-release: No such file or directory
ubuntu-server-12042-x64 executed in 0.01 seconds
Exited: 2
ubuntu-server-12042-x64 00:38:26$ ls /etc/debian_version
/etc/debian_version
ubuntu-server-12042-x64 executed in 0.01 seconds
ubuntu-server-12042-x64 00:38:26$ lsb_release -ir
Distributor ID: Ubuntu
Release: 12.04
ubuntu-server-12042-x64 executed in 0.03 seconds
ubuntu-server-12042-x64 00:38:26$ mktemp -t apply_manifest.pp.XXXXXX
/tmp/apply_manifest.pp.yTrOGl
ubuntu-server-12042-x64 executed in 0.01 seconds
localhost $ scp /var/folders/tl/6zyyz4jj6tzgjwssffc72hgh0000gq/T/beaker20141216-41986-164rk0o ubuntu-server-12042-x64:/tmp/apply_manifest.pp.yTrOGl {:ignore => }
ubuntu-server-12042-x64 00:38:26$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.yTrOGl
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Info: Loading facts
Notice: Compiled catalog for ubuntu-server-12042-x64 in environment production in 0.19 seconds
Info: Applying configuration version '1418690307'
Notice: /Stage[main]/Sudo/File[/etc/sudoers.d/]/mode: mode changed '0755' to '0750'
Notice: /Stage[main]/Sudo/Package[sudo]/ensure: ensure changed '1.8.3p1-1ubuntu3.4' to '1.8.3p1-1ubuntu3.6'
Info: Creating state file /var/lib/puppet/state/state.yaml
Notice: Finished catalog run in 11.41 seconds
ubuntu-server-12042-x64 executed in 13.01 seconds
Exited: 2
ubuntu-server-12042-x64 00:38:39$ mktemp -t apply_manifest.pp.XXXXXX
/tmp/apply_manifest.pp.qd2gNK
ubuntu-server-12042-x64 executed in 0.01 seconds
localhost $ scp /var/folders/tl/6zyyz4jj6tzgjwssffc72hgh0000gq/T/beaker20141216-41986-6txd9c ubuntu-server-12042-x64:/tmp/apply_manifest.pp.qd2gNK {:ignore => }
ubuntu-server-12042-x64 00:38:39$ puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest.pp.qd2gNK
Warning: Setting templatedir is deprecated. See http://links.puppetlabs.com/env-settings-deprecations
(at /usr/lib/ruby/vendor_ruby/puppet/settings.rb:1139:in `issue_deprecation_warning')
Info: Loading facts
Notice: Compiled catalog for ubuntu-server-12042-x64 in environment production in 0.21 seconds
Info: Applying configuration version '1418690320'
Notice: Finished catalog run in 0.13 seconds
ubuntu-server-12042-x64 executed in 1.46 seconds
should work idempotently with no errors
File "/etc/sudoers.d/"
ubuntu-server-12042-x64 00:38:40$ stat -c %a /etc/sudoers.d/ | grep -- \^750\$
750
ubuntu-server-12042-x64 executed in 0.01 seconds
should be mode 750
ubuntu-server-12042-x64 00:38:40$ stat -c %U /etc/sudoers.d/ | grep -- \^root\$
+ .g/r/git-rebase-todo
root
ubuntu-server-12042-x64 executed in 0.01 seconds
should be owned by "root"
removing temporory ssh-config files per-vagrant box
Destroying vagrant boxes
==> ubuntu-server-12042-x64: Forcing shutdown of VM...
==> ubuntu-server-12042-x64: Destroying VM and associated drives...
Finished in 28.27 seconds
3 examples, 0 failures
Merged pull request but GitHub still sees it as open. If there is anything missing please reopen. Thanks for your contribution!
Closes #19