Rex

 view release on metacpan or  search on metacpan

ChangeLog  view on Meta::CPAN

 - migrated augeas module into Rex core - #532 - Jan
 - added partial sudo support for rsync command - Jan
 - fixed #529 - odd number of elements - Jan
 - fixed #528 -Amazon list_services, doesn't get all ec2 instances - thanks
   to David Golovan - Jan
 - fixed an issue that causes the parser to think the rexfile has an error
   - Jan
 - start of unit-test for Rex::Commands::DB - Volker Kroll (vkroll)
 - better fix for #521, don't print all servers by rex -T. Also fixed group
   authentication. - Jan
 - patch from twitter/@tekcurmudgeon to allow setting of gpgkey for a
   repository - Jan
 - fixed late group lookup - #521 - Jan
 - if the evaluation of the Rexfile was without syntax errors, but don't
   return a true value, try to evaluate it manually. so is is not needed to
   return a true value at the end. - fix for #513 - Jan
 - fixed path resolution for private_key and public_key when used a ~
   (tilde) sign. #517 - Jan
 - fix rsync with port definition - #520 - Jan
 - added parse_templates option to sync_up function, so that template
   parsing can be prevented - #519 - Jan

ChangeLog  view on Meta::CPAN


0.15 2011-08-07 Jan Gehring <jan.gehring, gmail.com>
 - new function to detect a redhat system (or clone like CentOS, Scientific
 - Linux)
 - increased timeouts for jiffybox
 - fixed template bug with $ signs
 - added support for scientific linux
 - added support for gentoo

0.57.0 2015-01-11 Jan Gehring <jan.gehring, rexify.org>
 - allow definition of gpgkey for redhat/yum repositories - #522 -
   tekcurmudgeon
 - fixed Group defined after task definition - #521
 - fixed rsync will execute failed when use -H 127.0.0.1:2222 - #520
 - added new sync_up/down option for sync_up function will replace template
   variable of *.tpl - #519
 - fixed failed authentication when used ~ symbol - #517
 - fixed before_task_start() fails with an ambiguous error when your
   Rexfile does not return a true value - #513

0.56.1 2015-01-06 Jan Gehring <jan.gehring, rexify.org>

ChangeLog  view on Meta::CPAN

 - #215 - input validation for rexify to prevent creation of invalid module
   names
 - #214 - yum operations should be silent
 - #213, #231 - rexify to use proxy settings - Chris Steigmeier
 - #231 - Another Red Hat Enterprise flavor - Chris Steigmeier
 - #200 - Refactor OpenWrt user module - Ferenc Erki
 - #195 - Fix a typo in example code - Boris Däppen
 - #194 - Prefer ip command over ifconfig - Ferenc Erki
 - #189 - Zero values in crontab fields - Ferenc Erki
 - #186 - Turn "eval your Rexfile" into a debug message - Anders Ossowicki
 - #210 - zypper --no-gpg-checks option
 - #208 - Cache inventory of servers for faster execution
 - #206 - sync_up function doesn't work in modules.
 - #196 - Support port with ranged hostnamed
 - #180 - support of other shells than bash for the PATH / environment
   variable - Cuong Manh Le
 - #177 - if a feature can't be satisfied, die()
 - #166 - tmp directory now configurable

0.42.4 2013-07-04 Jan Gehring <jan.gehring, gmail.com>
 - fixed an issue with append_if_no_such_line when searching for a string

ChangeLog  view on Meta::CPAN

 - fixed a bug in the service module for ubuntu

0.25.2 2012-02-15 Jan Gehring <jan.gehring, gmail.com>
 - display the correct module name in rexify --search command

0.25.1 2012-02-15 Jan Gehring <jan.gehring, gmail.com>
 - don't use github for recipes query

0.25.0 2012-02-15 Jan Gehring <jan.gehring, gmail.com>
 - added public repository commands to rexify
 - added patch from JEEN Lee for gpgcheck on yum repositories

0.24.1 2012-02-13 Jan Gehring <jan.gehring, gmail.com>
 - fixed a dependeny bug

0.24.0 2012-02-10 Jan Gehring <jan.gehring, gmail.com>
 - Added patches from Alexandr Ciornii for Makefile.PL and home-directory
   detection
 - it is now possible to use Rex as a library
 - fixed/simplified SCM module
 - added iptables flush command

lib/Rex/Pkg/Redhat.pm  view on Meta::CPAN

    i_run "rpm --import $data{key_file}";
  }

  my $fh = file_write "/etc/yum.repos.d/$name.repo";

  $fh->write("# This file is managed by Rex\n");
  $fh->write("[$name]\n");
  $fh->write("name=$desc\n");
  $fh->write( "baseurl=" . $data{"url"} . "\n" );
  $fh->write("enabled=1\n");
  $fh->write( "gpgkey=" . $data{"gpgkey"} . "\n" )
    if defined $data{"gpgkey"};
  $fh->write( "gpgcheck=" . $data{"gpgcheck"} . "\n" )
    if defined $data{"gpgcheck"};

  $fh->close;
}

sub rm_repository {
  my ( $self, $name ) = @_;
  unlink "/etc/yum.repos.d/$name.repo";
}

sub _yum {

lib/Rex/Pkg/SuSE.pm  view on Meta::CPAN

      update_package_db  => 'zypper -n ref -fd',
    };
  }
  else {
    $self->{commands} = {
      install            => 'zypper -n install %s',
      install_version    => 'zypper -n install $pkg-%s',
      update_system      => 'zypper -n up',
      dist_update_system => 'zypper -n up',
      remove             => 'zypper -n remove %s',
      update_package_db  => 'zypper --no-gpg-checks -n ref -fd',
    };
  }

  return $self;
}

sub bulk_install {
  my ( $self, $packages_aref, $option ) = @_;

  delete $option->{version}; # makes no sense to specify the same version for several packages



( run in 1.375 second using v1.01-cache-2.11-cpan-df04353d9ac )