Automation

Using Rex To Automate Your Datacentre

I actually “hate” to be honest  in my day to day work I come across a lot automate is the better thing to do a task more than once. To automate process I have confusion what tool going to use for that Puppet, Chef, CFEngine etc.

 

Things like Puppet, Chef etc. come along and when you look at their documentation, well, it’s huge and takes a lot of time to install and configure properly.thi automation thing is used to do that on 40-50 servers.

Rex

Rex is a lightweight framework and small I got excited and saw the possibilities of using it. The big advantage to Rex from your “master” server can use your ssh keys so you don’t have to install daemons on your target servers.

How Rex is structured

After creating rex project after installation check the install docs: http://rexify.org/get/index.html rexify should be used a new folder will be created with very clean structure.

  • All your hosts and usernames and passwords will be there in file Rexfile
  • perl module (.pm file) will be there in the lib folder so you can test if your connection with your server group is working

 

Continue reading “Using Rex To Automate Your Datacentre” »

Be the first to comment - What do you think?  Posted by Aniruddh - August 8, 2012 at 1:53 am

Categories: Automation, CentOS   Tags:

How To Automatically Shut Down Your Computer After A Download Finishes

To download something but don’t want to wait until it finishes so you can shut down the computer. In this case you can use Sentinella. Install it with the following command.

Continue reading “How To Automatically Shut Down Your Computer After A Download Finishes” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 20, 2011 at 4:49 am

Categories: Automation   Tags:

How To Create A Kickstart File For CentOS/Fedora/RedHat (RHEL)

an IT Support company means I am regularly installing CentOS, Fedora & Redhat on servers and desktop computers. Following this guide will explain how to automate the install process and install additional software with post installation scripts, the following CentOS Kickstart tutorial is also available on my blog.

First of all if you have never seen a kickstart file before and you have installed a flavour of Redhat Linux on a system go look in the /root dir you should see a file called “anaconda-ks.cfg” open it up and you will see the parameters you entered during your install in the kickstart file. It is a good way to understand by example (providing you can remember the options you selected at boot time).

Below I will give you an example of a kickstart file I used when rolling out a bunch of Fedora laptops with VMWare player installed and a couple of virtual machine images pulled in via wget. I chose to use a kickstart install with scripts over imaging software such as Symantec Ghost for the Linux installs as this enabled me to use the image on various types of hardware and with the tweak of a script I could greatly customise the installs in the future. Microsoft WDS / RIS or Ghost would not allow me this level of flexibility.

Continue reading “How To Create A Kickstart File For CentOS/Fedora/RedHat (RHEL)” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 19, 2011 at 1:58 pm

Categories: Automation, CentOS, Fedora   Tags:

Creating Your Own Distributable Ubuntu DVD

This can be done using a software called Remastersys. This article is about how to create a DVD image of the Ubuntu distribution on your machine with the exact same software included on the disk.Remastersys allows you to either create iso-backups of your whole system, including the home folder, or just backups of the installed software, leaving the home folder aside

1 Preliminary Note
If you want to burn it on a DVD, remember that the image may not surpass the maximum size of 4 GB. In most cases, this makes it impossible to include the home folder to the image since it may be the largest folder on your system. aware of what you want to do with the created iso-image.

I have tested Remastersys on Linux Mint 11 and it works properly on my machine.

2 Install Remastersys
open the sources.list

sudo gedit /etc/apt/sources.list
[...]
# Remastersys
deb http://www.geekconnection.org/remastersys/repository karmic/

to update your package list

Continue reading “Creating Your Own Distributable Ubuntu DVD” »

Be the first to comment - What do you think?  Posted by Aniruddh - November 1, 2011 at 6:19 pm

Categories: Automation, Installation, Ubuntu   Tags: