» Home » Docs » Release notes » Release notes for 0.31
Release notes for 0.31
General
Exchangeable communication protocol
The communication protocol is now exchangeable. It supports now SSH and HTTP(s). A Rex HTTP Endpoint is available as an extra package.
Read the documentation of Rex::Endpoint::HTTP for more information.
Feature flags
For new features that may be incompatible there is a new feature flag to explicit activate those features.
You can active new features by version in your Rexfile.
# Rexfile use Rex -feature => 0.31;
task prepare => sub { };
Set authentication per group or task (only with 0.31 features enabled)
You have to define the groups and tasks first before you can modify the authentication for them.
Authentication settings for tasks have always precedence over group settings.
use Rex -feature => 0.31;
auth for => "frontends" => user => "root", password => "foobar";
auth for => "backends" => user => "admin", private_key => "/path/to/id_rsa", public_key => "/path/to/id_rsa.pub", sudo => TRUE;
task "prepare", group => [ "frontends", "backends" ], sub { # do something };
auth for => "prepare" => user => "root";