Search Results for: linux directory structure

Ansible: overview and installation

Introduction Ansible is an automation platform that consists of an automation language which is YAML, that can describe an IT application infrastructure in the form of Ansible playbooks. Along with the YAML automation language, Ansible provides an automation engine is responsible for running these playbooks. The core Ansible tool is a command line tool and is freely available. It has been written by Michael DeHaan in the Python programming language and was initially released in the year 2012. Michael DeHaan has also written the server provisioning application cobbler. Ansible is owned by RedHat and a paid alternative named Ansible Tower is also available for customers who want an enterprise framework for controlling, securing and managing their Ansible automation with a UI and a RESTful API. In this article, we will go through the various advantages of Ansible and will also show you how to install Ansible.   Why use Ansible? In this section, we will explore the advantages of using Ansible in depth. Ansible is Simple It provides humanly readable automation in the form of playbooks written in YAML. YAML is extremely simple and easy to understand and no special coding skills are required to use Ansible. The tasks defined in playbooks are executed in order further adding to the simplicity of the structure. Since there are no coding skills involved in using Ansible, there is no steep learning...

Read More

How to write sysvinit scripts?

Introduction In one of our earlier articles we discussed the sysvinit system startup and service manager in detail. In a subsequent article, we compared sysvinit with other two major alternatives to sysvinit i.e. upstart and systemd. In this article, we will demonstrate how we can create our own init script and use it within the sysvinit service startup system.   Anatomy of an init script: The init scripts reside in the /etc/init.d directory which in fact is a soft link to the /etc/rc.d/init.d directory. An init script is a shell script that has some metadata information which is meant to be used by sysvinit followed by the code to manage a service/task/process. As you will see in the sample init script we’ve written and you may also take a look at other init scripts in the /etc/init.d directory, the general structure of the scripts is quite similar. The script will begin with some metadata information. This will be followed by a couple of functions which will contain code for actions to be performed. The functions and the code within them is essentially used to start or stop the service or to check it’s status. After the function definitions have been completed, there would be a case statement. The expression used with the case statement will be the argument specified to the service script. The case statement will contain cases...

Read More

What is GIT and how to install it on Centos

Introduction A version control system is a piece of software that records changes to a file or set of files over time so that you can recall specific versions of these files at a later date. The need for version control is not limited to developers in today’s complex and mission-critical infrastructure environments. System administrators too can make efficient use of version control to track changes in their scripts and/or place different configuration files under version control. GIT is a powerful distributed version control system, perhaps the most powerful and feature-rich version control system available as of this writing. We’ve already briefly talked about the need for version control for system administrators and in this article, we will talk about how GIT came into existence and how to install it on a centos system.   History of GIT GIT was created by Linus Torvalds in 2005. It is written in Perl and C. The GIT project was essentially started as a substitute version control system for the Linux Kernel after BitKeeper withdrew its support. This project has since become immensely popular among since the emergence of the devops movement and framework and continues to increase its popularity.   GIT Design goals: Speed Simplicity Strong branch/merge support Distributed Scales well for large projects We mentioned in our introduction that GIT is a distributed version control system. Given below are the...

Read More

Over 16,000 readers, Get fresh content from “The Linux juggernaut”

Email Subscribe

ABOUT ME..!

My photo
My name is Surendra Kumar Anne. I hail from Vijayawada which is cultural capital of south Indian state of Andhra Pradesh. I am a Linux evangelist who believes in Hard work, A down to earth person, Likes to share knowledge with others, Loves dogs, Likes photography. At present I work at Bank of America as Sr. Analyst Systems and Administration. You can contact me at surendra (@) linuxnix dot com.