rex

From Gentoo Wiki
Jump to:navigation Jump to:search

This article is a stub. Please help out by expanding it - how to get started.

rex sometimes stylized as (R)?ex is a configuration automation framework written in Perl known for its shallow learning curve and ease of extensibility. Widely regarded as a user-friendly automation framework, unlike better known alternatives such as Ansible, rex does not use YAML to describe tasks by default. Rather, it uses small easily understood snippets of Perl to describe tasks. Indeed, the entire system can readily be extended with custom Perl modules if needed.

Like many other configuration management tools rex is agentless, only requiring valid SSH keys and a working Perl interpreter on the managed system to function. Further, development currently targets Perl 5.10.1 (2009) which makes it possible to easily support legacy systems that would be difficult or impossible for other tools to manage.

Installation

USE flags

USE flags for app-admin/rex (R)?ex, the friendly automation framework

minimal Install a very minimal build (disables, for example, plugins, fonts, most drivers, non-critical features)
test Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled independently)

Emerge

root #emerge --ask app-admin/rex

Usage

Invocation

user $rex -h

Unmerge

root #emerge --ask --depclean --verbose app-admin/rex

See also

  • Ansible — an agentless automation system written in Python.
  • Sparrow
  • dsh — a shell that allows parallel execution of remote commands across large numbers of servers