Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

--no-ri --no-rdoc for gems + handle permission error while sftp transfer

  • Loading branch information...
commit ce252cf4c6cf0011c01d8ab41f505c5aaaa5bb33 1 parent ff0c4a8
@jedi4ever authored
View
15 lib/veewee/session.rb
@@ -262,7 +262,12 @@ def self.build(boxname,options)
versionfile=Tempfile.open("vbox.version")
versionfile.puts "#{VirtualBox::Global.global.lib.virtualbox.version}"
versionfile.rewind
- Veewee::Ssh.transfer_file("localhost",versionfile.path,".vbox_version", ssh_options)
+ begin
+ Veewee::Ssh.transfer_file("localhost",versionfile.path,".vbox_version", ssh_options)
+ rescue RuntimeError
+ puts "error transfering file, possible not enough permissions to write?"
+ exit
+ end
puts ""
versionfile.close
versionfile.delete
@@ -279,8 +284,12 @@ def self.build(boxname,options)
transaction(boxname,"#{counter}-#{postinstall_file}-#{checksums[counter]}",checksums) do
Veewee::Ssh.when_ssh_login_works("localhost",ssh_options) do
-
- Veewee::Ssh.transfer_file("localhost",filename,File.basename(filename),ssh_options)
+ begin
+ Veewee::Ssh.transfer_file("localhost",filename,File.basename(filename),ssh_options)
+ rescue RuntimeError
+ puts "error transfering file, possible not enough permissions to write?"
+ exit
+ end
command=@definition[:sudo_cmd]
command.gsub!(/%p/,"#{@definition[:ssh_password]}")
command.gsub!(/%u/,"#{@definition[:ssh_user]}")
View
3  templates/CentOS-4.8-i386/postinstall.sh
@@ -18,8 +18,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/CentOS-5.5-i386-netboot/postinstall.sh
@@ -18,8 +18,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/CentOS-5.5-i386/postinstall.sh
@@ -18,8 +18,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/ubuntu-10.04.1-server-amd64/postinstall.sh
@@ -18,8 +18,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/ubuntu-10.04.1-server-i386/postinstall.sh
@@ -20,8 +20,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/ubuntu-10.10-server-amd64-netboot/postinstall.sh
@@ -20,8 +20,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
5 templates/ubuntu-10.10-server-amd64/postinstall.sh
@@ -20,8 +20,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
-/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+#Installing chef & Puppet
+/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/ubuntu-10.10-server-i386-netboot/postinstall.sh
@@ -20,8 +20,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
View
3  templates/ubuntu-10.10-server-i386/postinstall.sh
@@ -20,8 +20,9 @@ echo 'PATH=$PATH:/opt/ruby/bin/'> /etc/profile.d/rubyenterprise.sh
rm -rf ./ruby-enterprise-1.8.7-2010.02/
rm ruby-enterprise-1.8.7-2010.02.tar.gz
-#Installing chef
+#Installing chef & Puppet
/opt/ruby/bin/gem install chef --no-ri --no-rdoc
+/opt/ruby/bin/gem install puppet --no-ri --no-rdoc
#Installing vagrant keys
mkdir /home/vagrant/.ssh
Please sign in to comment.
Something went wrong with that request. Please try again.