Giter Club home page Giter Club logo

rex's Introduction

Rex Build Status

With (R)?ex you can manage all your boxes from a central point through the complete process of configuration management and software deployment.

Usage

A small example:

Rexfile

set user => "root";
set password => "root";
set -passauth;

group frontend => "frontend[01..09]", "varnish[01..04]";

desc "Show Unix version";
task "uname", group => "frontend", sub {
    say run "uname -a";
};

desc "Install needed packages and configurations";
task "prepare", group => "frontend", sub {
   install "apache2";
   install "mysql-server";

   file "/path/on/the/remote/machine",
      content => "Hello World!",
      mode    => 600,
      owner   => "root",
      group   => "root";
};

Commandline

  • Run commands directly from command line
bash# rex -e 'say run "uptime";' -H "frontend[01..10] middleware[01..05]" -u root -p password
  • List all known Tasks
bash# rex -T
Tasks
  uname                     Show Unix version
  • Run Task uname
bash# rex uname
Running task: uname
Connecting to server1 (root)
Linux mango 2.6.27-openvz-briullov.1-r4 #1 SMP Tue Nov 24 23:25:52 CET 2009 x86_64 Intel(R) Pentium(R) D CPU 2.80GHz GenuineIntel GNU/Linux
Running task: uname
Connecting to server2 (root)
Linux debian01 2.6.26-2-amd64 #1 SMP Tue Aug 31 09:11:22 UTC 2010 x86_64 GNU/Linux

rex's People

Contributors

ferki avatar svendowideit avatar jorisd avatar jfin avatar samuelet avatar drandor avatar sbertrang avatar jmrenouard avatar sasg avatar chorny avatar hnakamur avatar aowi avatar saschaguenther avatar protocall7 avatar chenryn avatar eduardoj avatar ajaxhelios avatar bokutin avatar andrejzverev avatar danie avatar dominikschulz avatar atrodo avatar pplu avatar tianon avatar reneeb avatar keedi avatar mdom avatar ironcamel avatar endyman avatar stefb69 avatar

Watchers

James Cloos avatar  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.