Closed dashohoxha closed 6 years ago
Based on above comment I am planning to create settings.sh
file something like this
# mode of operation. yes for standalone mode. no for normal mode
# refer this - https://github.com/docker-scripts/dev--LTSP/wiki/LTSP-Modes-of-Operation
STANDALONE="yes"
# IP address of ltsp server
LAN_IP="192.168.111.16"
NETWORK="$(echo $LAN_IP | cut -d'.' -f1-3)"
# Interface used by ltsp server, client and dhcp server.
# Will be automatically set by test.sh.
LAN_IF=""
# List of extra packages to be installed on ltsp server.
PACKAGES="vim"
this has been tested internally. also replaced INTERFACE
with LAN_IF
in both the Vagrantfiles
and test.sh
script.
The line of NETWORK may not work on Ruby. Add at least 2 extra packages for proper testing. Look at the other tasks/issues in case there is anything else that needs to be added on settings.sh
I just tested NETWORK line does work well. (as stuff inside it is in double quotes)
Look at the other tasks/issues in case there is anything else that needs to be added on settings.sh
just have to enable debugging. Something I plan on doing later when solve #58
I just tested NETWORK line does work well. (as stuff inside it is in double quotes)
You mean that Ruby does $ shell expansion?
just have to enable debugging.
Do this before testing.
You mean that Ruby does $ shell expansion?
no. NETWORK
is not used by Vagrantfile
. Putting it inside double quotes make it a normal ruby variable.
If I write puts NETWORK
in vagrantfile it would print out (echo $LAN_IP | cut -d'.' -f1-3)
. while in bash script it will do shell expansion and get network address.
You are right. But nonetheless it defeats the purpose of a configuration file. You can do that calculation on the bash script instead.
Sure. I can do that.
settings.sh
that explain what each variable is used for and what values it can take.="192.168.111.16"
in order to avoid that tests work accidentally (by mistake).ubuntu-edu-preschool
etc. For testing this list can be empty, in order to shorten the time needed for installing the server.