Rex::JobControl - Job-Control Webinterface for Rex
(R)?ex is a configuration- and deployment management framework. You can write tasks in a file named Rexfile.
You can find examples and howtos on http://rexify.org/
This is the official webinterface for Rex.
Web Site: http://rexify.org/
IRC: irc.freenode.net #rex
Bug Tracker: https://github.com/RexOps/rex-jobcontrol/issues
To install Rex::JobControl you can use the normal cpan tools. We recommend using cpanm from http://cpanmin.us/.
After installing you have to create the configuration file in on of the locations mentioned in CONFIGURATION.
Before you first start the server you have to run the setup command.
rex_job_control jobcontrol setup
This command will create all the necesarry directories you have configured in your configuration file.
If you want to install Rex::JobControl on Ubuntu 14.04 you have to follow these steps.
apt-get install cpanminus libdatetime-perl gcc make automake m4 bison flex libssh2-1-dev libssl-dev
For this, you can use the example configuration file from the git repostiroy.
wget -O /etc/rex/jobcontrol.conf https://raw.githubusercontent.com/RexOps/rex-jobcontrol/master/jobcontrol.conf
Now after you have configured Rex::JobControl you have to create all the necessary folders. You can do this with a build-in command.
This will also create a user admin with password admin.
Rex::JobControl can create upstart files for you. To do this run the following command.
rex_job_control jobcontrol upstart -c
After this you can start the Rex::JobWorker server and worker daemon (minion).
service rex-jobcontrol start
service rex-jobcontrol-minion start
Now you can access the webfrontend via http://$your-server:8080/. If you can't connect, make sure the firewall doesn't block the traffic to post 8080.
If you want to install Rex::JobControl on CentOS 7 you have to follow these steps.
yum install perl-DateTime perl-App-cpanminus gcc m4 flex bison git wget
Rex::JobControl can create systemd unit files for you. To do this run the following command.
rex_job_control jobcontrol systemd -c
systemctl start rex-jobcontrol.service
systemctl start rex-jobcontrol-minion.service
The configuration file is looked up in 3 locations.
You find an example configuration file on https://github.com/RexOps/rex-jobcontrol.
Rex::JobControl consists of 2 services. The Webinterface and the Worker.
To start the worker you have to run the following command. You can start as many worker as you need/want.
rex_job_control minion worker
To start the Webinterface you have to run this command. This will start a webserver at port 8080.
Currently there is no webinterface to manage the users, but you can use a cli command to do this.
rex_job_control jobcontrol adduser -u $user -p $password
rex_job_control jobcontrol deluser -u $user
rex_job_control jobcontrol listuser
To install Rex::JobControl, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.