(R)?ex the friendly automation framework

News

2020-12-05
Rex-1.13.2

The Rex-1.13.2 release is now available on CPAN. It contains only documentation updates, mostly for the built-in template capabilities, but also fixes a few typos.

2020-11-05
Rex-1.13.1

Happy 10th birthday, Rex!

The Rex-1.13.1 release is now available on CPAN. It is focusing on CMDB bugfixes and documentation, while also fixing a missing feature flag. Upgrade is recommended for all users.

2020-10-05
Rex-1.13.0

The Rex-1.13.0 release is now available on CPAN. It adds on_no_change hooks for file management commands to trigger further actions when files are left unchanged. Upgrade is recommended for all users.

2020-09-05
Rex-1.12.2

The Rex-1.12.2 release is now available on CPAN. It fixes various regressions, as well as bugs around file management. Upgrade is highly recommended for all users.

2020-08-05
Rex-1.12.1

The Rex-1.12.1 release is now available on CPAN. It adds documentation for feature flags, and fixes a release packaging issue.

Conferences

2016-06-21

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 » Release notes for 0.47.0

Release notes for 0.47.0

These are the changes in 0.47 release.

We want to thank all the people for contributing code and to fill bug reports. This helps making Rex better and better :)

Security

Rex::Test

With Rex::Test it is possible to test your Rexfile on a local VM before executing the code on your servers.

set box => "KVM";

test { my $t = shift;

<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">name</span>("<span class="hljs-string">ubuntu test</span>");

<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">base_vm</span>("<span class="hljs-string">http://box.rexify.org/box/ubuntu-server-12.10-amd64.img</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">vm_auth</span>( user =&gt; "<span class="hljs-string">root</span>", password =&gt; "<span class="hljs-string">box</span>" );

<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">run_task</span>("<span class="hljs-string">setup</span>");

<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_package</span>("<span class="hljs-string">vim</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_package</span>("<span class="hljs-string">ntp</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_package</span>("<span class="hljs-string">unzip</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_file</span>("<span class="hljs-string">/etc/ntp.conf</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_service_running</span>("<span class="hljs-string">ntp</span>");
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">has_content</span>( "<span class="hljs-string">/etc/passwd</span>", qr{root:x:0:}ms );

run "<span class="hljs-string">ls -l</span>";
<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">ok</span>( <span class="hljs-variable">$?</span> == 0, "<span class="hljs-string">ls -l returns success.</span>" );

<span class="hljs-type">$t</span>-&gt;<span class="hljs-type">finish</span>;

};

1;

Base

Bugfixes

Proudly powered by Statocles

Google Group / Twitter / GitHub / Mailinglist / irc.freenode.net #rex   -.ô.-   Disclaimer