Skip to content

Installing Trigger on RHEL CentOS 6.x

Jathan McCollum edited this page Feb 13, 2014 · 2 revisions

Adapted from http://paklids.blogspot.com/2013/12/setup-trigger-on-centosrhel.html (Credit: Paklids)

Here is a basic setup which you can use to get up and running. Run this as root on a CentOs/RHEL system (tested on Centos 6.4 with rpmforge repos already setup):

Grab epel repository and make it available in yum:

wget http://mirrors.solfo.com/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -i epel-release-6-8.noarch.rpm

Update yum cache so it knows to use epel rpms

yum update

Install everything you need to install Trigger

yum -y install libxml2-devel libxml++-devel python-devel python-setuptools python-simpleparse python-twisted python-pip redis automake gcc

Start redis in case you need it

chkconfig redis on
service redis start

Use pip to install trigger

pip install trigger

Build config directory and populate with something (pip copies trigger files into /tmp/pip-build-root/trigger/)

mkdir -p /etc/trigger
cp /tmp/pip-build-root/trigger/conf/netdevices.xml /etc/trigger/netdevices.xml
cp /tmp/pip-build-root/trigger/conf/bounce.py /etc/trigger/bounce.py
cp /tmp/pip-build-root/trigger/conf/trigger_settings.py /etc/trigger/settings.py
cp /tmp/pip-build-root/trigger/conf/autoacl.py /etc/trigger/autoacl.py
cp /tmp/pip-build-root/trigger/tests/data/tackf /etc/trigger/.tackf

Create a few dirs that you may need

mkdir -p /data/firewalls
mkdir -p /data/tftproot

Now you need to edit your /etc/trigger/settings.py and set your DB type and details run init_task_db to populate your DB with the basic tables that you'll need.

Clone this wiki locally