Commit your changes or import your new program in cvs(1)
, this
gives us more track on ongoing development of the software. Also provide a
reasonable commit message.
Background information:
The TTM software can be generic to either a prototype setup, or a host in the
TTM network. Observe a part of the hierarchy under /ncc/ttpro/files/
/set type=dir uname=ttraffic gname=test-traffic mode=0755 ttpro files proto_test_box_4 .. tt03_generic type=link link=proto_test_box_4 .. tt03_install_disk .. tt03_specific .. .. ..
This example shows the hierarchy for tt03.ripe.net. It has a install disk set
and some data specifically belonging it. For the rest it is based on the fourth
hardware/os revision currently in use, tt03_generic
is linked from
proto_test_box_4
.
It is up for the author of the software to decide if the software is specific to either a prototype or a testbox host.
Extract a working copy of your sources or scripts and create/compile versions of it for each prototype set you want it for. For the sake of simplicity this HOW TO refers to the prototype setups, just think of tt*_specific as it where prototype setups if you have the other case.
For each prototype setup directory do the following:
usr/home/ttraffic/SW/YYYYMMDD
in it.
usr/home/ttraffic/SW/YYYYMMDD
.
usr/local/SW/YYYYMMDD
in it.
usr/local/SW/YYYYMMDD
.
YYYYMMDD is the current date, lets say 20020925 for instance
Log on toginkgo, and ttsync
your new or upgraded software using
The TTM software case:
tt_sync -v -E -b -a -f /usr/home/ttraffic/SW/YYYYMMDD
It is sufficient to do this as ttraffic
The local system software case:
tt_sync -v -E -b -a -f /usr/local/SW/YYYYMMDD
Do this as root
Log on to ginkgo and go to /ncc/ttpro/config
and
Edit the CFEngine configuration files:
If there has been a new install or update of the TTM software:
Edit cf.Testboxes
If there has been a new install or update of the local system software:
Edit cf.Testboxes.root
Go to the links:
target and either add a new link target or replace an existing one.
The result should look like this more or less:
$(TT)/bin/my_software ->! $(TT)/SW/20020925/my_software
Be sure it is in either the Testboxes::
or
groupC::
/groupD::
macro selector, as there are other
macro selectors with other actions! (XXX to be documented!)
Refer to the cfengine documentation for an exact description how to make links.
execute the following command:
cfengine.conf -DChainUpdate
.
This will push the new configuration to all testboxes. You may want to do this as root, but doing it as ttraffic is sufficient enough if only the TTM software is updated.