» Home » Docs » Release notes » Release notes for 0.10
Release notes for 0.10
Rex
Added a network module
use Rex::Commands::Network;
my $default_gw = default_gateway; default_gateway "192.168.2.1";
my @netstat = netstat; my @tcp_connections = grep { $_->{"proto"} eq "tcp" } netstat;
Added mount and umount functions to the Fs module
task "mount", "server01", sub { mount "/dev/sda5", "/tmp"; mount "/dev/sda6", "/mnt/sda6", fs => "ext3", options => [qw/noatime async/]; };
Added a cron module
use Rex::Commands::Cron;
cron list => "root";
cron delete => "root", 3;
Inventory module
Added more information to the returned hash as proposed by Franky on the mailinglist.
Package module
Added a new function installed_packages to get information of all installed packages.
task "get-installed", "server1", sub {
for my $pkg ( installed_packages() ) { say "name : " . $pkg->{"name"}; say " version: " . $pkg->{"version"}; }