... using the yadtshell it's easy to start and stop services on yadtclients.
In this guide we want to show you how to set up a minimal YADT system, on a single host with dummy services to play with.
- We recommend to test YADT in a vm.
- red hat system version 6.x (preferred).
- python >= 2.6.
- yum, rpm and a user with sufficient rights to install/remove packages via
sudo yum
. - All hosts to be controlled are accessible passwordless via ssh.
- EPEL has to be installed. You will find the rpm on The newest version of 'epel-release' for EL6, for example
sudo yum localinstall http://ftp.tu-chemnitz.de/pub/linux/fedora-epel/6/i386/epel-release-6-8.noarch.rpm
- git to clone the repository
sudo yum install git
Clone the try-it-yourself repository:
git clone https://github.com/yadt/try-it-yourself
# keep the .ssh path but set the passphrase as you like
ssh-keygen
# copy the id_rsa.pub key to the authorized_key file in your .ssh folder (home directory)
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
cd try-it-yourself
( cd yadtclient; ./setup.sh )
( cd yadtshell; ./setup.sh )
The yum
installation runs will ask you if you want to proceed:
review the actions yum will take and type yes
when appropriate.
cd yadtshell
./helloworld.sh
This script will
- create a simple target definition file in a new subfolder adequately named "helloworld",
- define the local host as member of the new target (using its fqdn),
- update the target and start all services,
- try to fetch the current status information of the target via
yadtshell status
For more commands, check out the cheat sheet from the project page or the wiki.
To remove all yadt related rpms, run ./cleanup.sh
in both the yadtclient and yadtshell folder.