forked from jedi4ever/veewee
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
133 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
rvm use ruby-1.8.7 | ||
rvm gemset use veewee | ||
alias vagrant="bundle exec vagrant" | ||
alias irb="bundle exec irb" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Veewee::Session.declare( { | ||
:cpu_count => '1', :memory_size=> '256', | ||
:disk_size => '10140', :disk_format => 'VDI',:disk_size => '10240' , | ||
:os_type_id => 'FreeBSD_64', | ||
:iso_file => "mfsbsd-8.1-amd64.iso", | ||
:iso_src => "http://mfsbsd.vx.sk/iso/mfsbsd-8.1-amd64.iso", | ||
:iso_md5 => "alala", | ||
:iso_download_timeout => "1000", | ||
:boot_wait => "10",:boot_cmd_sequence => [ | ||
'<Enter>' | ||
], | ||
:kickstart_port => "7122", :kickstart_timeout => "10000",:kickstart_file => "", | ||
:ssh_login_timeout => "10000",:ssh_user => "root", :ssh_password => "mfsroot",:ssh_key => "", | ||
:ssh_host_port => "7222", :ssh_guest_port => "22", | ||
:sudo_cmd => "sh '%f'", | ||
:shutdown_cmd => "shutdown -H", | ||
:postinstall_files => [ "postinstall.sh"],:postinstall_timeout => "10000" | ||
} | ||
) | ||
#'setkmap=us dodhcp=eth0 dhcphostname=%NAME% ar_source=http://%IP%:%PORT%/ autoruns=0 rootpass=vagrant', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
#http://www.freebsd.org/doc/en_US.ISO8859-1/articles/remote-install/installation.html | ||
dd if=/dev/zero of=/dev/ad4 count=2 | ||
#bsdlabel -wB /dev/ad4 | ||
|
||
sysctl kern.geom.debugflags=16 | ||
|
||
|
||
cat <<EOF >/install.cfg | ||
# This is the installation configuration file for our rackmounted FreeBSD | ||
# cluster machines | ||
# Turn on extra debugging. | ||
debug=yes | ||
#releaseName 8.0-RELEASE | ||
################################ | ||
# My host specific data | ||
#hostname=dragonfly | ||
#domainname=cs.duke.edu | ||
#nameserver=152.3.145.240 | ||
#defaultrouter=152.3.145.240 | ||
#ipaddr=152.3.145.64 | ||
#netmask=255.255.255.0 | ||
################################ | ||
tryDHCP=NO | ||
################################ | ||
# Which installation device to use | ||
_ftpPath=ftp://ftp.freebsd.org/pub/FreeBSD/ | ||
netDev=em0 | ||
mediaSetFTP | ||
################################ | ||
################################ | ||
# Select which distributions we want. | ||
#dists= bin doc games manpages catpages proflibs dict info des compat1x compat20 compat21 X331bin X331cfg X331doc X331html X331lib X331lkit X331man X331prog X331ps X331set X331VG16 X331nest X331vfb X331fnts X331f100 X331fcyr X331fscl X331fnon sinclude | ||
#distSetCustom | ||
distSetMinimum | ||
################################ | ||
################################ | ||
# Now set the parameters for the partition editor on ad4. | ||
disk=ad4 | ||
partition=all | ||
#http://www.mail-archive.com/[email protected]/msg212036.html | ||
bootManager=standard | ||
diskPartitionEditor | ||
diskPartitionWrite | ||
################################ | ||
################################ | ||
# All sizes are expressed in 512 byte blocks! | ||
# | ||
# A 960MB root partition, followed by a 0.5G swap partition, followed by | ||
# a 1G /var, and a /usr using all the remaining space on the disk | ||
# | ||
ad4s1-1=ufs 1966080 /mnt | ||
ad4s1-2=swap 1048576 none | ||
ad4s1-3=ufs 2097152 /mnt/var | ||
ad4s1-4=ufs 0 /mnt/usr | ||
# Let's do it! | ||
diskLabelEditor | ||
diskLabelCommit | ||
#http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2010-11/msg00420.html | ||
installRoot=/mnt | ||
# | ||
# OK, everything is set. Do it! | ||
installCommit | ||
# Install some packages at the end. | ||
# package=LPRng-3.2.3 | ||
# packageAdd | ||
# Install some packages at the end. | ||
# | ||
# this last package is special. It is used to configure the machine. | ||
# it installs several files (like /root/.rhosts) an its installation | ||
# script tweaks several options in /etc/rc.conf | ||
# | ||
#package=ari-0.0 | ||
#packageAdd | ||
EOF | ||
|
||
exit | ||
sysinstall configFile=/install.cfg loadConfig |