veewee 0.1.15 → 0.1.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- veewee (0.1.15)
4
+ veewee (0.1.16)
5
5
  cucumber (= 0.8.5)
6
6
  highline (~> 1.6.1)
7
7
  net-ssh (~> 2.1.0)
@@ -1,3 +1,3 @@
1
1
  module Veewee
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
@@ -26,7 +26,7 @@ Veewee::Session.declare( {
26
26
  :ssh_login_timeout => "10000",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
27
27
  :ssh_host_port => "7222", :ssh_guest_port => "22",
28
28
  :sudo_cmd => "cat '%f'|su -",
29
- :shutdown_cmd => "shutdown -H",
29
+ :shutdown_cmd => "shutdown -p now",
30
30
  :postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000"
31
31
  }
32
32
  )
@@ -31,7 +31,9 @@ disk0-part=UFS+S 5629 /usr
31
31
  commitDiskLabel
32
32
 
33
33
  # List our components to install
34
- installComponents=ports,src
34
+ # Src is only needed for the virtualbox extensions
35
+ # installComponents=ports,src
36
+ installComponents=ports
35
37
 
36
38
  # Set the root pass
37
39
  rootPass=vagrant
@@ -45,24 +47,11 @@ userHome=/home/vagrant
45
47
  userGroups=wheel,operator
46
48
  commitUser
47
49
 
48
- # This is executed in sh not in bash
49
- # 072 = '=' character
50
- # 042 = '"' character
51
- #runExtCommand=echo sshd_enable\\\072\\\042YES\\\042 >> $FSMNT/etc/rc.conf
52
- #runExtCommand=echo sshd_enable\=\"YES\" >> $FSMNT/etc/rc.conf
53
50
  runExtCommand=/root/activate-ssh.sh
54
51
 
55
- # We can't run this because the chroot does not have network setup yet
56
- # http://sonicchicken.net/blog/wordpress/20090111/batch-port-install/
57
- # http://lists.freebsd.org/pipermail/freebsd-questions/2007-January/140301.html
58
- #runCommand=cd /usr/ports/security/sudo ; make install -DBATCH
59
-
60
52
  # We temporary disable password checks , we promise to make up for it later
61
53
  runCommand=sed -i -e 's@auth.*include.*system@@' /etc/pam.d/su
62
54
 
63
- #/usr/local/etc/sudoers
64
- ## Same thing without a password
65
- # %wheel ALL=(ALL) NOPASSWD: ALL
66
-
67
- ## Uncomment to allow members of group sudo to execute any command
68
- # %sudo ALL=(ALL) ALL
55
+ # making the clock run correctly
56
+ # http://forums.virtualbox.org/viewtopic.php?f=11&t=12210&start=0
57
+ runCommand=echo 'kern.hz=100' > /boot/loader.conf
@@ -18,6 +18,10 @@ make install -DBATCH
18
18
  cd /usr/ports/sysutils/rubygem-chef
19
19
  make install -DBATCH
20
20
 
21
+ #Installing chef & Puppet
22
+ /usr/local/bin/gem update chef --no-ri --no-rdoc
23
+ /usr/local/bin/gem install puppet --no-ri --no-rdoc
24
+
21
25
  #Get wget
22
26
  cd /usr/ports/ftp/wget
23
27
  make install -DBATCH
@@ -29,6 +33,42 @@ cd /home/vagrant/.ssh
29
33
  /usr/local/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
30
34
  chown -R vagrant /home/vagrant/.ssh
31
35
 
36
+ # Cleaning portstree to save space
37
+ # http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ports-using.html
38
+ cd /usr/ports/ports-mgmt/portupgrade
39
+ make install -DBATCH clean
40
+
41
+ /usr/local/sbin/portsclean -C
42
+
43
+ # As sharedfolders are not in defaults ports tree
44
+ # We will use vagrant via NFS
45
+ # Enable NFS
46
+ echo 'rpcbind_enable="YES"' >> /etc/rc.conf
47
+ echo 'nfs_server_enable="YES"' >> /etc/rc.conf
48
+ echo 'mountd_flags="-r"' >> /etc/rc.conf
49
+
50
+ # Enable passwordless sudo
51
+ echo "vagrant ALL=(ALL) NOPASSWD: ALL" >> /usr/local/etc/sudoers
52
+ # Restore correct su permissions
53
+ # I'll leave that up to the reader :)
54
+
55
+ echo "=============================================================================="
56
+ echo "NOTE: FreeBSD - Vagrant"
57
+ echo "When using this basebox you need to do some special stuff in your Vagrantfile"
58
+ echo "1) Include the correct system"
59
+ echo " require 'vagrant/systems/freebsd' "
60
+ echo "2) Add after your config.vm.box = ..."
61
+ echo " config.vm.system = :freebsd"
62
+ echo "3) Enable HostOnly network"
63
+ echo " config.vm.network ...."
64
+ echo "4) Use nfs instead of shared folders"
65
+ echo " :nfs => true"
66
+ echo "============================================================================="
67
+
68
+
69
+
70
+ exit
71
+
32
72
  # The iso from virtualbox will only install windows/solaris or linux, no BSD
33
73
  # Research is on it's way to have 4.x in the main portstree
34
74
  # http://www.listware.net/201102/freebsd-ports/65201-call-for-testers-virtualbox-404.html
@@ -49,6 +89,3 @@ make install -DBATCH
49
89
 
50
90
  echo 'vboxguest_enable="YES"' >> /etc/rc.conf
51
91
  echo 'vboxservice_enable="YES"' >> /etc/rc.conf
52
-
53
- # Restore correct sudo permissions
54
- # I'll leave that up to the reader :)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: veewee
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 15
10
- version: 0.1.15
9
+ - 16
10
+ version: 0.1.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Debois