(R)?ex 部署 & 配置管理框架

搜索

新闻

2016-03-07
(R)?ex 1.4.0 发布, 包含大量更新. 详情 发布文档.
2015-09-04
(R)?ex 1.3.3 released, fixing a bunch of bugs. See the release notes for more details.
2015-06-22
adjust GmbH is sponsoring the (R)?ex project with a new build server. Thank you for your support!
2015-06-17
(R)?ex 1.3.2 released, fixing issues related to file manipulation when run on BSDs. See the release notes for more details.
2015-06-09
Read the second part of "Rex in practice" series about Test-driven infrastructure.
2015-05-09
repositor.io 1.1.0 released. repositor.io is a repository management tool for apt, yum, yast and docker. This is a bugfix release with fixes for ubuntu and centos7 installation media mirroring.
2015-03-27
阅读 Andy Beverley 带来的演讲文稿 An introduction to Rex

会议

2015-05-07
German Perl Workshop 上做 Infrastructure as Code (ger) 的演讲。

培训

2015-11-30/2015-12-01 (Karlsruhe)

需要帮助吗?

Rex 是一个开源的项目,所以你可以找到社区的支持,连接如下:

  • IRC: #rex on freenode
  • 邮件组: rex-users
  • 问题列表: Github
  • 特性需求: 你需要什么 特性?
  • 商务支持: inovex
  • QQ群: 252744726

Professional support is also available.

安装 Rex

你可以在命令行使用单行安装

$ curl -L https://get.rexify.org | perl - --sudo -n Rex

BSD 和 Linux

大多数主要发行版上都已经有了打包好的 Rex。选择你的发行版然后按照下面的步骤进行:

For Trusty (14.04)

apt-get install apt-transport-https
echo 'deb https://rex.linux-files.org/ubuntu/ trusty rex' >> /etc/apt/sources.list
wget -O - https://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex

For Precise (12.04)

apt-get install apt-transport-https
echo 'deb https://rex.linux-files.org/ubuntu/ precise rex' >> /etc/apt/sources.list
wget -O - https://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex

For Lucid (10.04)

apt-get install apt-transport-https
echo 'deb https://rex.linux-files.org/ubuntu/ lucid rex' >> /etc/apt/sources.list
wget -O - https://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex

For Wheezy

apt-get install apt-transport-https
echo 'deb https://rex.linux-files.org/debian/ wheezy rex' >> /etc/apt/sources.list
wget -O - https://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex

For Squeeze

apt-get install apt-transport-https
echo 'deb https://rex.linux-files.org/debian/ squeeze rex' >> /etc/apt/sources.list
wget -O - https://rex.linux-files.org/DPKG-GPG-KEY-REXIFY-REPO | apt-key add -
apt-get update
apt-get install rex

Installation with emerge

Thanks to Bonsaikitten Rex is now available in the official Gentoo Portage Repository.

emerge -av app-admin/rex

CentOS 7

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS6

cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=https://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF

yum install rex

CentOS 6

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS6

cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=https://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF

yum install rex

CentOS 5

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO.CENTOS5

cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=https://rex.linux-files.org/CentOS/\$releasever/rex/\$basearch/
enabled=1
EOF

yum install rex

For 13.1

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
zypper addrepo -t rpm-md -f -n rex https://rex.linux-files.org/OpenSuSE/13.1/rex/x86_64/ rex
zypper install rex

For 13.2

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
zypper addrepo -t rpm-md -f -n rex https://rex.linux-files.org/OpenSuSE/13.2/rex/x86_64/ rex
zypper install rex

Mageia 3

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO
urpmi.addmedia rex https://rex.linux-files.org/Mageia/3/rex/x86_64/
urpmi rex

Fedora 20+

rpm --import https://rex.linux-files.org/RPM-GPG-KEY-REXIFY-REPO

cat >/etc/yum.repos.d/rex.repo <<EOF
[rex]
name=Fedora \$releasever - \$basearch - Rex Repository
baseurl=https://rex.linux-files.org/Fedora/\$releasever/rex/\$basearch/
enabled=1
EOF

yum install rex

Installation with ports

Thanks to Sam Cassiba Rex is now available in the official FreeBSD Ports collection.

cd /usr/ports/sysutils/p5-Rex
make install clean

Installation with pkg

pkg install p5-Rex

Apple Mac OS X

如果你用homebrew 安装 我记得应该安装好 Perlbrew.

MacPort 的安装方式:

sudo port install libssh2 perl5
curl -L https://get.rexify.org | perl - --sudo -n Rex

Microsoft Windows

只在 Windows Vista 和 Windows 7 (64bit) 上用 Strawberry Perl 5.x 测试通过。

打开 CMD 窗口然后输入:

cpanm Rex

如果你想用 Rex/Boxes 你需要把你的 VirtualBox 安装路径添加到你的 PATH 环境变量中。默认路径应该是 C:\Program Files\Oracle\VirtualBox。更详细的介绍可以读这篇文章:ComputerHope.

其他 / 基于源码安装

如果你想从 Github 上下载最新的源代码,你可以通过这个方式来进行。开发是在主分支上完成的,我们也会给每个版本做 tag 标签。

git clone https://github.com/RexOps/Rex.git
cd Rex
cpanm Dist::Zilla
dzil authordeps --missing | cpanm
dzil listdeps --missing | cpanm
dzil install

CPAN

下面这行命令会从 CPAN 下载并安装最新版的 Rex

cpanm Rex

所有的商标都是其各自公司注册,不隶属且不一定代表他们赞助和支持了 rexify.org (和 Rex).

comments powered by Disqus
Fork me on GitHub
Google Group / Twitter / GitHub / Mailinglist / irc.freenode.net #rex   -.ô.-   Disclaimer

D