Maxscale and pacemaker on centos 7

Install packages on both nodes

sudo yum install corosync pcs pacemaker maxscale

Set the password for the hacluster user [both nodes]

sudo passwd hacluster

Start the pcs daemon service [both nodes]

sudo systemctl start pcsd

Authenticate the cluster

sudo pcs cluster auth node01.domain.local node02.domain.local

Create cluster

Install RabbitMQ on centos 7

Install RabbitMQ on CentOS 7

sudo yum -y install epel-release
sudo yum -y update

Install Erlang

Download repository


Add repository

sudo rpm -Uvh erlang-solutions-1.0-1.noarch.rpm

Install erlang and dependencies

sudo yum -y install erlang socat logrotate

Install RabbitMQ

Download RabbitMQ package

rabbitmq centos7

Apache run external program with SELinux enabled

This is helpful when you don't want to disable Selinux and need to run external program like wkhtmltopdf via apache on selinux enabled. Run the following commands from the terminal. (This has been tested in CentOS 7)

Allow Execution

setsebool httpd_execmem on

Change a dirs security context if the program writes to a file

chcon -R -t httpd_sys_rw_content_t dir
apache selinux

ElasticSearch LogStash and Kibana Stack on a CentOS

I. Install JDK

yum install java-1.7.0-openjdk

II. Install & Configure ElasticSearch

Add repository

rpm --import
cat > /etc/yum.repos.d/elasticsearch.repo <<EOF
name=Elasticsearch repository for 1.3.x packages

Install ElasticSearch

Kerberos setup on centos 7

Installing Kerberos on Redhat 7

This installation is going to require 2 servers one acts as kerberos KDC server and the other machine is going to be client. Lets assume the FQDN's are (here is the domain name, make a note of the domain name here): * Kerberos KDC Server: * Kerberos Client:

kerberos centos7