Posts

Showing posts from March, 2021

Ansible industry use case study

Image
  Ansible it is the next generation automation being said by industry experts Microsoft the biggest tech company, is popular for its OS which is Windows  Microsft has entered into Cloud providing service long back, having the trademark Azure It has found a huge growth in users for ansible over Azure. Microsoft has collaborated with RedHat to adopt Ansible Engine and Ansible Tower over Azure. Microsoft has used its staged Ansible environments for the automation of tasks, such as the delivery of changes in code. “Digital transformation is really changing the way that we think about how we solve problems. In the past, we had to manually do the same deployment again and again,” said Dworak. “With Ansible, we can create blueprints to deploy it multiple times. And every time we deploy, it’s exactly the same. Instead of redoing work and having a lot of different, single-use versions, we can continually finetune this shared code.”  - Ansible Tower is the WebUI tool to deploy the ...

Making the restarting of HTTPD Service idempotence in Ansible

Image
Idempotency using Handlers In Ansible idempotency is provided to many of the modules but it is not available for the service module especially to restart  the state Idempotency is the method of checking if the requested change is already present then no change is made, if not present then the change will occur In order to achieve idempotency for this, it can be done through handlers Handler is a special keyword in ansible it is used to achieve a particular task only if another specified task is changed The following is the playbook written to restart httpd service only if a file is copied This playbook is run for the first time, in this the handler is tun because the copy has occured This playbook is run for the second time, here the handler is not run because the copy has not happened  #vimaldaga #righteducation #educationredefine #rightmentor #worldrecordholder #linuxworld #makingindiafutureready #righeudcation #arthbylw #ansible #facts #inventory #webserver

Configuring Hadoop cluster using Ansible

Image
  🔰 11.1 Configure Hadoop and start cluster services using Ansible Playbook - Configuring Hadoop cluster consumes a lot of time and each time when a new node has to be launched it requires more time and there is a chance for occurrence of human error. - This use case can be easily solved withe the help of Ansible - For configuring any type of node in hadoop cluster we need JDK and Hadoop installation files These are the files I created for easy configuration of hadoop cluster with ansible dcore-site.xml  -  core-site.xml file for data node dhdfs-site.xml  -  hdfs.site.xml file for data node ncore-site.xml  -  core-site.xml file for name node nhdfs-site.xml  -  hdfs.site.xml file for name node hadoop.yml - playbook for hadoop configuration This ansible code is for configuring nodes JDK and Hadoop files are transferred to the nodes and installed on each node This is for configuring namenode and starting the namenode This is for configuring ...