Author: Ankesh K

What is Terraform and its Benefits?

Introduction to Terraform Welcome to the introduction of Terraform. We are going to cover what Terraform is, what are its key features, how it is different from existing tools, etc. Terraform is a tool by HashiCorp. There are other tools from the HashiCorp such as Vagrant, Packer, Vault, Consul, and Nomad. Most of us have used public cloud services like AWS, Azure, Google Cloud Platform, etc. Creating our infrastructure on these platforms are pretty easy and straightforward when done manually. When we talk about infrastructure, we talk about Networks, Subnets, Firewalls, Storage, Load Balancers, etc and when we talk about automating our infrastructure, we talk about the reusability, reliability and sharable features. There are already many configuration management tools in the market such as Chef, Ansible, Puppet, Salt, etc. These tools can be used to automate your services running inside the virtual machine. But we need a reusable process to build infrastructure. The idea is to treat the infrastructure in the same way as an application. So all the principles which can be applied to software development can be applied to infrastructure too like version control. The infrastructure can be shared as it is a code and can be rolled back to the previous version if needed.   What is Terraform? Terraform is a tool for building, changing and versioning infrastructure safely and efficiently. Terraform can manage existing and...

Read More

Embedding Excel/CSV file in Email from Linux CLI

Recently I was working with something and got into a situation where I wanted to embed some content to an email body and trigger it from a Linux server via command line inputs. We can do it using any of the Email-Clients until the file is an Excel(CSV) format and needed to send it as an Email body. Sending the attachment via email is not a tough task, we can achieve it using any of the email-clients like Mutt, Alpine, Sup, Not much, Sendmail, Mail, etc. The complexity increases when the CSV has to be embedded in the Email. Now, to embed any file in the email body, the file has to be converted to HTML format. We can achieve this using small Linux scripts where you use awk command to format the file into an HTML. Secondly, we can use different shell utilities to do the same where we install some third-party applications and do the conversion. CSV FILE Let’s take an example. Our excel file here is EXCEL_CSV.csv. The content of the file is displayed below: cat EXCEL_CSV.csv subscription,location,resourceGroupName,name,size,publisher,offer,sku,provisioningState,powerState,privateIP,publicIP sunscription1, eastus,RG1,NAME1, standard_d12_v2, canonical, ubuntuserver, 16.04-lts, succeeded," ""DELETED""",, sunscription2, eastus,RG2,NAME2, standard_ds1_v2, canonical, ubuntuserver, 16.04-lts, succeeded," ""DELETED""",, sunscription3, eastus,RG3,NAME3, standard_a1, canonical, ubuntuserver, 14.04.4-lts, succeeded," ""vm deallocated""",, null sunscription4, eastus,RG4,NAME4, standard_a1, microsoftwindowsserver, windowsserver, 2008-r2-sp1, succeeded," ""vm deallocated""",, null CSV to HTML (Using CSV2HTML) in Linux The next step is to convert...

Read More

What is HashiCorp DevOps tools all about?

  INTRODUCTION TO HASHICORP [Taken from] In this post, we are going to cover this awesome DevOps startup, their principles, all the tools. HashiCorp is a company based in San Francisco that solves development, operations, and security challenges in infrastructure so organizations can focus on business-critical tasks. HashiCorp was founded by Mitchell Hashimoto and Armon Dadgar in 2012 with the goal of revolutionizing datacenter management: application development, delivery, and maintenance. We will also see how they are integrated into the DevOps ecosystem. We normally don’t cover company as our aim to help technical stuff rather than some history. But HashiCorp is very different from other companies. In order to understand each tool, we should know why they developed that tool. HashiCorp builds tools to ease these decisions by presenting solutions that span the gaps. Their tools manage AtoZ of infrastructure as code. They can manage physical and virtual machines, different OS(Windows, Linux/Unix, Mac OS), SaaS and IaaS, etc. HashiCorp always works on awesome products and every now and then releasing something groundbreaking that we wonder how we worked without it. Now they are more focused on offering a CI workflow. Features of HashiCorp tools Provision, secure and run any infrastructure for any application. The tools adopt a cloud-agnostic approach to create infrastructure. Create and configure portable infrastructure deployment code. Create, Plan and Run Infrastructure as Code. Efficiently deploy...

Read More

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

Email Subscribe


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.