(R)?ex Deployment & Configuration Management

Search

News

2016-09-08

Work with (R)?ex at adjust! Check out their job posting for details, or contact our fellow core developer, FErki.

2016-07-16

(R)?ex 1.4.1 released, fixing many bugs. See the release notes for more details.

2016-03-07

(R)?ex 1.4.0 released, containing lots of goodies. See the release notes for more details.

2015-09-04

(R)?ex 1.3.3 released, fixing a bunch of bugs. See the release notes for more details.

2015-06-22

adjust GmbH is sponsoring the (R)?ex project with a new build server. Thank you for your support!

2015-06-17

(R)?ex 1.3.2 released, fixing issues related to file manipulation when run on BSDs. See the release notes for more details.

2015-06-08

(R)?ex 1.3.1 released, fixing Rex::Commands::DB related tests.

2015-05-27

Read the second part of "Rex in practice" series about Test-driven infrastructure.

2015-05-09

repositor.io 1.1.0 released. repositor.io is a repository management tool for apt, yum, yast and docker. This is a bugfix release with fixes for ubuntu and centos7 installation media mirroring.

2015-05-03

(R)?ex 1.2.0 released. See the release notes for more details.

2015-03-27

View the slides of the talk An introduction to Rex from Andy Beverley.

Conferences

2016-06-21

Training

Need Help?

Rex is a pure open source project, you can find community support in the following places:

Professional support is also available.

» Home » Docs » Release notes » 0.42

Release notes for 0.42

Common

Net::OpenSSH connection mode - chenryn

As of this release it is possible to use Net::OpenSSH for the connection. With this it is also possible to use kerberos authentication and all features OpenSSH has (like ProxyCommand, etc.).

To use Net::OpenSSH you have to set the connection type in your Rexfile.

This fixes long standing pull request #70.

Copy to clipboard
use Rex -feature => '0.42';

set connection => 'OpenSSH';

task 'yourtask', 'yourserver', sub {
   say run 'uptime';
};

Kerberos authentication - chenryn

If you want to use kerberos authentication you have to use Net::OpenSSH.

Copy to clipboard
set connection => "OpenSSH";

user "youruser";
krb5_auth;

Custom user for sudo command

It is now possible to use custom users for the sudo command.

Copy to clipboard
task "mytask", "server1", sub {
    sudo {
         user => "foo",
         command => "id",
    };
};

new function delete_lines_according_to - liedekef

This function is similar to delete_lines_matching but with an other syntax and the possibility to use the on_change hook if the file was changed.

Copy to clipboard
task "cleanup", "server1", sub {
   delete_lines_according_to qr{^foo:}, "/etc/passwd",
      on_change => sub {
         say "removed user foo.";
      };
};

new feature flag use_server_auth to enable auth properties in INI files

define server groups with special server properties in INI files

The INI file feature is improved to allow custom properties for servers and to allow inheritance of sections.

You have to use use_server_auth feature flag for this.

Copy to clipboard
# Rexfile
use Rex -feature => [qw/use_server_auth/];
use Rex::Group::Lookup::INI;
groups_file('servergroups.ini');
Copy to clipboard
; my group file
[frontends]
fe01
fe02

fe03
fe04
fe05

# the backends
[backends]
be01
be02
;be03
be04

[db]
db[01..02]

[redis]
@backends
redis01
redis02

[memcache < redis]
memcache01
memcache02 user=root password=foob4r sudo=true services=apache,memcache

This will create the following groups:

Copy to clipboard
frontends: fe01, fe02, fe03, fe04, fe05
backends: be01, be02, be04
db: db01, db02
redis: be01, be02, be04, redis01, redis02
memcache: be01, be02, be04, redis01, redis02, memcache01, memcache02

memcache02 will use custom authentication and there will be a special option "services" for this server that can be queried like this:

Copy to clipboard
task "mytask", group => "memcache", sub {
    say connection->server->option("services");
};

cwd option for run command

Copy to clipboard
run "ls -l",
   cwd => "/home";

Speed improvements

Bugfixes/cleanups/enhancements

Fork me on GitHub
Google Group / Twitter / GitHub / Mailinglist / irc.freenode.net #rex   -.รด.-   Disclaimer