Coder Social home page Coder Social logo

try-it-yourself's Introduction

Try it yourself ...

... using the yadtshell it's easy to start and stop services on yadtclients.

concept yadtshell and yadtclient

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.

Prerequisites

  • 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

Checkout the files

Clone the try-it-yourself repository:

git clone https://github.com/yadt/try-it-yourself

Installation

Password-less ssh on local machine

# 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

Execute setup scripts

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.

"Hello World"

cd yadtshell
./helloworld.sh

This script will

  1. create a simple target definition file in a new subfolder adequately named "helloworld",
  2. define the local host as member of the new target (using its fqdn),
  3. update the target and start all services,
  4. try to fetch the current status information of the target via yadtshell status

yadtshell status

For more commands, check out the cheat sheet from the project page or the wiki.

Deinstallation

To remove all yadt related rpms, run ./cleanup.sh in both the yadtclient and yadtshell folder.

try-it-yourself's People

Contributors

aelgru avatar girls-day avatar mriehl avatar nmesstorff avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.