» Home » Docs » Release notes » Release notes for 0.24
Release notes for 0.24
Rex
use Rex as a library for your own project.
use Rex; use Rex::Commands::Run; use Rex::Commands::Fs; use Rex::Commands::Pkg;
if ( is_file("/etc/sudoers") ) {
<span class="hljs-comment"># do something</span><span class="hljs-comment">
}
install package => "apache2";
Extended Iptables module with a flush command
use Rex::Commands::Iptables; iptables -F;
Inline templates
It is now possible to write templates inside your Rexfile.
task "foo", sub { file "/etc/foo", content => template( "@mytemplate.conf", user => 'bar', ); }; __DATA__ @mytemplate.conf <?php $DB['user'] = "<%= $::user %>"; @end
cloud_instance command now returns instance info after create
added CLI parameters to before/around hooks
task "foo", sub { my ($param) = shift;
# ... };
<span class="hljs-comment"># do something before "foo"</span><span class="hljs-comment">
};
added LVM create functions
pvcreate "/dev/sda1"; vgcreate vg0 => "/dev/sda1", "/dev/sda2"; lvcreate "lv0", size => "20G", onvg => "vg0", fstype => "ext3";
fixed bugs