lyte-vagrant-boxes's People
lyte-vagrant-boxes's Issues
Proxy support
I have forked but didn't know the best way to discuss this - so instead of just submitting a pull request, here's what I'm using...
diff --git a/definitions/sl6-64-lyte/definition.rb b/definitions/sl6-64-lyte/definition.rb
index fe4008a..e226ff8 100644
--- a/definitions/sl6-64-lyte/definition.rb
+++ b/definitions/sl6-64-lyte/definition.rb
@@ -6,8 +6,10 @@ Veewee::Session.declare({
:hostiocache => 'off',
:virtualbox => {
:vm_options => [
- "ioapic" => "on",
- "pae" => "on"
+ :ioapic => 'on',
+ :pae => 'on',
+ :natdnsproxy1 => 'off',
+ :natdnshostresolver1 => 'on'
]
},
:os_type_id => 'RedHat_64',
@@ -16,10 +18,10 @@ Veewee::Session.declare({
:iso_md5 => "e9625e2c3b4b02d94ffa478773d5d58f",
:iso_download_timeout => 1000,
:boot_wait => "15",
- :boot_cmd_sequence => [ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg<Enter>' ],
+ :boot_cmd_sequence => [ '<Tab> text ks=http://%IP%:%PORT%/ks.cfg.erb<Enter>' ],
+ :kickstart_file => "ks.cfg.erb",
:kickstart_port => "7122",
:kickstart_timeout => 10000,
- :kickstart_file => "ks.cfg",
:ssh_login_timeout => "10000",
:ssh_user => "vagrant",
:ssh_password => "vagrant",
@@ -34,5 +36,8 @@ Veewee::Session.declare({
"virtualbox.sh",
"cleanup.sh"
],
- :postinstall_timeout => 10000
+ :postinstall_timeout => 10000,
+ :params => {
+ :proxy => 'http://host.local.vm:3142'
+ },
})
The changes to the ks.cfg to support the proxy are pretty simple as well
--- definitions/sl6-64-lyte/ks.cfg 2013-06-16 02:11:48.000000000 +1000
+++ definitions/sl6-64-lyte/ks.cfg.erb 2013-06-16 12:22:07.000000000 +1000
@@ -1,5 +1,5 @@
-install
-url --url=http://10.13.0.1:3142/mirror.aarnet.edu.au/pub/scientific/6.3/x86_64/os
+<% proxy = @ui.env.definitions[@ui.resource].params[:proxy] || '' %>install
+url --url=http://mirror.aarnet.edu.au/pub/scientific/6.3/x86_64/os <%= proxy && '--proxy=' + proxy %>
lang en_US.UTF-8
keyboard us
network --bootproto dhcp
@@ -88,6 +88,7 @@
-mailx
%post
+<% if not proxy.empty? %>echo "proxy=<%= proxy %>" >> /etc/yum.conf<% end %>
/usr/sbin/groupadd vagrant
/usr/sbin/useradd vagrant -g vagrant -G wheel
echo "vagrant" | passwd --stdin vagrant
It's not fully tested because networking in my VMs is refusing to play nice :(
Missing cvs and antiword deps
Currently when running provisioners against the Matrix VM it's picking up a few missing packages, which should be added to the base box:
Installing:
antiword x86_64 0.37-6.el6 squiz 179 k
cvs x86_64 1.11.23-11.el6_2.1 sl 711 k
Installing for dependencies:
perl x86_64 4:5.10.1-127.el6 sl 10 M
perl-Module-Pluggable x86_64 1:3.90-127.el6 sl 37 k
perl-Pod-Escapes x86_64 1:1.04-127.el6 sl 30 k
perl-Pod-Simple x86_64 1:3.13-127.el6 sl 209 k
perl-libs x86_64 4:5.10.1-127.el6 sl 575 k
perl-version x86_64 3:0.77-127.el6 sl 48 k
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.