Skip to main content

Posts

Showing posts from September, 2017

Ansible Installation Steps Red Hat Enterprise Linux 7

Ansible is a simple IT automation engine that automates provisioning, configuration management, application deployment and many other IT needs.  Designed for multi-tier deployments, ansible models your IT infrastructure by describing how all of your systems interrelate, rather than just managing one system at a time. In this Article we are going to learn Ansible Installation Steps Red Hat Enterprise Linux 7 – RHEL 7. It uses no agents and no additional custom security infrastructure, so it’s easy to deploy – and most importantly, it uses a very simple language YAML that allow you to describe your automation jobs in a way that approaches plain English. Ansible Architecture Ansible works by connecting to your nodes and pushing out small programs, called “Ansible modules” to them. These programs are written to be resource models of the desired state of the system. Ansible then executes these modules using SSH Protocol, and removes them when finished. Your library of modules c

IPC (Incident, Problem & Change) Management with OTRS

IPC (Incident, Problem & Change) Management with OTRS 1.  Install OTRS 5 on CentOS 7 Download https://www.otrs.com/download-open-source-help-desk-software-otrs-free/ # rpm -i otrs-5.0.22-01.noarch.rpm Open  following link in browser to run the installer.  Replace  “otrs.itgratis.com” with your server IP/Hostname http:// otrs.itgratis.com /otrs/installer.pl Follow the instruction on the screen. You will find below screen for Database. Select  MySQL and click Next Here you need to Install MySQL-Community-Server before you click on Next. You can install Database on the same server or a separate server. Download https://dev.mysql.com/downloads/repo/yum/ Add MySQL Yum Repository # rpm -Uvh mysql57-community-release-el7-11.noarch.rpm Verifying MySQL Repo # yum repolist Install & Start MySQL Server #yum install mysql-community-server #systemctl start mysqld.service Find unamename & Password # grep 'temporary password' /var/log/mysqld.log Cha

Managing tomcat application

Tomcat is a servlet application which is ready to use after download. There is no need of installing this application. We can directly start or stop it from the bin directory.  So in such case we should go to the bin directory in the CATALINA_HOME or else we need to use the startup script along with its absolute path. And the same is needed to shut it down. We can use the below script to manage the tomcat application and we neither need to go to the CATALINA_HOME nor to use the absolute path. All we need to do is to change the permissions to make it executable and copy that to /sbin and /etc/init.d/ directories. If we copy this into /etc/init.d/ then also we need to mention the absolute path but we can easily memorize it as we know all the startup scripts exists there. But if we copy that into /sbin then there is absolutely no need of mentioning the path of the file. We can use this like below: # tomcat start|stop|restart|status #!/bin/bash # Author : Arjun Shrin

Configuring Tomcat as Service

Configuring Tomcat as Service Till now we are starting or stopping the tomcat instance from the home through the catalina script. We will not be able to start this through  service  or  systemctl In the previous sessions you might have seen that we have started this through  service  but it is a custom script written by me Apart from that we can't directly use tomcat through  service Now let us see how to accomplish this. For this we should have  jvsc  package installed on our  CentOS/Redhat  machine. This package will help us to run the java services as daemons or services. Install through  YUM # yum install jsvc -y If the packages are not available then we need to download and install from the source. NOTE: Please ensure that you have configured you JAVA_HOME before proceeding with the below. # wget http://www-eu.apache.org/dist//commons/daemon/source/commons-daemon-1.0.15-src.tar.gz # tar -xzvf commons-daemon-1.0.15-src.tar.gz # cd commons-