veewee 0.1.14 → 0.1.15
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
data/lib/veewee/version.rb
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
# Many thanks to @draco2002
|
|
2
2
|
# http://dracosplace.com/veewee_and_freebsd
|
|
3
3
|
|
|
4
|
+
# :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-bootonly.iso",
|
|
5
|
+
# :iso_file => "PCBSD8.2-x86-bootonly.iso",
|
|
6
|
+
|
|
4
7
|
Veewee::Session.declare( {
|
|
5
8
|
:cpu_count => '1', :memory_size=> '768',
|
|
6
9
|
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' ,
|
|
7
10
|
:os_type_id => 'FreeBSD',
|
|
8
|
-
# :iso_file => "PCBSD8.2-x86-bootonly.iso",
|
|
9
11
|
:iso_file => "PCBSD8.2-x86-DVD.iso",
|
|
10
|
-
|
|
11
|
-
# :iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-bootonly.iso",
|
|
12
12
|
:iso_src => "ftp://mirrors.isc.org/pub/pcbsd/8.2/i386/PCBSD8.2-x86-DVD.iso",
|
|
13
|
-
|
|
14
13
|
:iso_md5 => "6433a8abf6073b177750d48398bed341",
|
|
15
14
|
:iso_download_timeout => "1000",
|
|
16
|
-
:boot_wait => "
|
|
17
|
-
'<KillX>',
|
|
18
|
-
|
|
19
|
-
'dhclient em0<Enter>',
|
|
15
|
+
:boot_wait => "70",:boot_cmd_sequence => [
|
|
16
|
+
'<KillX>',
|
|
17
|
+
'<Enter>',
|
|
18
|
+
'dhclient em0<Enter>',
|
|
20
19
|
'sleep 15;echo "Lets Get the File";fetch "http://%IP%:%PORT%/pcinstall.fbg.cfg";sleep 2;',
|
|
21
20
|
'echo \'echo sshd_enable=\"YES\" >> $FSMNT/etc/rc.conf\' > /root/activate-ssh.sh ; cat /root/activate-ssh.sh<Enter>',
|
|
22
21
|
'chmod +x /root/activate-ssh.sh<Enter>',
|
|
23
|
-
'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>'
|
|
24
|
-
|
|
22
|
+
'echo "Hope i got the file";/usr/PCBSD/pc-sysinstall/pc-sysinstall -c /root/pcinstall.fbg.cfg<Enter>',
|
|
23
|
+
'reboot<Enter>'
|
|
25
24
|
],
|
|
26
25
|
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "pcinstall.fbg.cfg",
|
|
27
26
|
:ssh_login_timeout => "10000",:ssh_user => "vagrant", :ssh_password => "vagrant",:ssh_key => "",
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
# Get the latest portstree (needed for virtualbox to be on 4.x)
|
|
2
|
+
portsnap fetch update
|
|
3
|
+
|
|
1
4
|
#First install sudo
|
|
2
5
|
cd /usr/ports/security/sudo
|
|
3
6
|
make install -DBATCH
|
|
@@ -6,16 +9,46 @@ make install -DBATCH
|
|
|
6
9
|
cd /usr/ports/shells/bash
|
|
7
10
|
make install -DBATCH
|
|
8
11
|
|
|
12
|
+
|
|
9
13
|
#Off to rubygems to get first ruby running
|
|
10
|
-
cd /usr/ports/
|
|
14
|
+
cd /usr/ports/devel/ruby-gems
|
|
11
15
|
make install -DBATCH
|
|
12
16
|
|
|
13
|
-
#Gem chef
|
|
17
|
+
#Gem chef - does install chef 9.12 (latest in ports?)
|
|
14
18
|
cd /usr/ports/sysutils/rubygem-chef
|
|
15
19
|
make install -DBATCH
|
|
16
20
|
|
|
17
|
-
#
|
|
21
|
+
#Get wget
|
|
22
|
+
cd /usr/ports/ftp/wget
|
|
23
|
+
make install -DBATCH
|
|
24
|
+
|
|
25
|
+
#Installing vagrant keys
|
|
26
|
+
mkdir /home/vagrant/.ssh
|
|
27
|
+
chmod 700 /home/vagrant/.ssh
|
|
28
|
+
cd /home/vagrant/.ssh
|
|
29
|
+
/usr/local/bin/wget --no-check-certificate 'http://github.com/mitchellh/vagrant/raw/master/keys/vagrant.pub' -O authorized_keys
|
|
30
|
+
chown -R vagrant /home/vagrant/.ssh
|
|
31
|
+
|
|
32
|
+
# The iso from virtualbox will only install windows/solaris or linux, no BSD
|
|
33
|
+
# Research is on it's way to have 4.x in the main portstree
|
|
34
|
+
# http://www.listware.net/201102/freebsd-ports/65201-call-for-testers-virtualbox-404.html
|
|
35
|
+
# Virtualbox additions - http://wiki.freebsd.org/VirtualBox
|
|
36
|
+
# Currently this will only work for 4.0.4
|
|
37
|
+
cd /tmp
|
|
38
|
+
wget http://home.bluelife.at/ports/virtualbox-cft-20110218.tar.gz
|
|
39
|
+
cd /usr/ports
|
|
40
|
+
tar -xzvf /tmp/virtualbox-cft-20110218.tar.gz
|
|
41
|
+
|
|
42
|
+
# This requires libtool >= 2.4
|
|
43
|
+
cd /usr/ports/devel/libtool
|
|
44
|
+
make clean
|
|
45
|
+
make install -DBATCH
|
|
46
|
+
|
|
47
|
+
cd /usr/ports/emulators/virtualbox-ose-additions
|
|
48
|
+
make install -DBATCH
|
|
18
49
|
|
|
19
|
-
|
|
50
|
+
echo 'vboxguest_enable="YES"' >> /etc/rc.conf
|
|
51
|
+
echo 'vboxservice_enable="YES"' >> /etc/rc.conf
|
|
20
52
|
|
|
21
|
-
#
|
|
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:
|
|
4
|
+
hash: 5
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 1
|
|
9
|
-
-
|
|
10
|
-
version: 0.1.
|
|
9
|
+
- 15
|
|
10
|
+
version: 0.1.15
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Patrick Debois
|