(R)?ex Deployment & Configuration Management

Search

News

2013-06-16
(R)?ex 0.42.0 released. This release brings support to use Net::OpenSSH as transport layer. The default is still Net::SSH2. But now it is possible to use all features from your $HOME/.ssh/config file and to use Kerberos Authentication. See a list of all changes with example in the Changelog.
2013-05-23
Inovex just announced that they offer professional support for Rex.
2013-04-01
(R)?ex 0.41.0 released. This release brings a handfull of new functions that ease the use and bug fixes. See ChangeLog for more information.
There is also a new guide on howto use modules and templates online.
2013-03-20

We are proud to announce that Rex was voted under the Best Open Source solutions 2013 by initiative mittelstand. And we want to thank inovex for the support to make this happen.

2013-03-16
Talk from the German Perl Workshop just got uploaded to slideshare (german) and (english).

Conferences

Open Source Data Center Conference

17 - 18 April 2013 in Nuremberg

OSDC is about simplifying complex IT infrastructures with Open Source. A rare opportunity to meet with Open Source professionals and insiders, gather and share information over 2 days of presentations, hands-on workshops and social networking.

We are proud to anounce that Rex will have a booth on the LinuxTag. The LinuxTag will take place in Berlin from 22. - 25. May. LinuxTag is the most popuplar and important conference in the Linux and Open Source scene in Europe.

Come and join us, we will do live demostrations with a custom build portable mini datacenter.

If you want to help us for a day or two don't hesitate to contact @jfried83.

Need Help?

Rex is a pure Open Source project. So you can find community support in the following places.

Howto start using (R)?ex

This is a small howto showing the first steps with (R)?ex.

Preparation

  • Download and install rex (See the get page)

Creating a Rexfile

At first create a file named Rexfile in your $HOME directory (or anywhere else).

user "my-user";
password "my-password";
pass_auth;

group myserver => "mywebserver", "mymailserver", "myfileserver";

desc "Get the uptime of all server";
task "uptime", group => "myserver", sub {
   say run "uptime";
};

This Example will login as my-user with the password my-password on all the servers in the group myserver and run the command "uptime".

Change into the directory where you just created the Rexfile (in a terminal).

$ cd /home/jan
$ rex uptime

Adding a second task

To add a second task, just add the next lines to your Rexfile.

desc "Start Apache Service";
task "free", group => "myserver", sub {
    service "apache2" => "start";
} 

This task will start the service apache2 on all the servers in the myserver group.

Display all tasks in a Rexfile

If you want to display all tasks in your Rexfile use the following command.

$ rex -T
Tasks
  free                           Start Apache Service
  uptime                         Get the uptime of all server
Batches 
comments powered by Disqus
Fork me on GitHub
Google Group / Twitter / Github / Mailinglist / irc.freenode.net #rex   -.รด.-   Disclaimer