Welcome again to another blog on getting started with Terraform!
The terraform code that we are going to build in this blog will help you achieve the following: (It is good to know the basics!)
1. Launch an AWS EC2 instance.
2. Configure the instance with Apache Webserver.
3. Download PHP application “WordPress”.
4. Configure a MySQL Database server using AWS RDS that the WordPress application will use at the backend.
3. Finally, get the endpoint/connection string and other details to launch & connect to the WordPress site.
So, let’s get started!
Since we want to work with AWS, and…
Imagine working in some IT company, years ago, when the concepts of Virtual Machines or Cloud Computing did not exist. If your team was given the responsibility of provisioning the infrastructure required to launch your company's latest product, what do you think it would take to achieve that?
Well, it would not be easy. Your team would have to go through the entire hardware purchasing cycle and wait for days to accurately configure the server to match the company’s expectations. Also, the network configuration, storage configuration, etc., falls upon the mantle of your team.
Fortunately, today we have the power…
In this blog, we will see how to provision and configure Kubernetes Cluster on AWS. We will automate this process using Ansible.
1. Launch 3 EC2 instances on AWS.
2. Set up dynamic inventory to fetch AWS instance IPs.
3. Configure the Master node
4. Configure the Worker nodes
5. Allow the worker to join the cluster
For Launching the instances we will simply run a play on localhost. For connecting with AWS, we will require the IAM user credentials of our account. You can get your credentials by creating an IAM user. Copy the Access_key and Secret_key in a…
If you are familiar with Ansible — the amazing configuration management tool but haven’t yet played around Ansible roles, I must tell you that you are missing out the fun.
To help yourself overcome the struggle of managing huge tasks files with variables, handlers and templates, I recommend you reading this till end.
This blog will give a brief introduction to Ansible Roles and walk you through a simple yet elegant demonstration.
Ansible roles is the way you can separate your tasks, variables and related files in a nice file structure. The tasks for the end configuration to achieve is…
Please refer to my previous article where I configured Docker using Ansible.
This article extends that demonstration to further retrieve the new container IP and updating the inventory so that further configuration could be done inside the containers.
So, let’s get started!
Step 1: Get your inventory done correctly.
I created an empty host group [containers] at the beginning, here is where my container info will be loaded.
Step 2: If you followed this blog, you already know a lot.
The blog gives a detailed demonstration on how we can launch a container with Ansible. …
This article will walk you through all the steps that you must do to configure docker on Ansible managed nodes. Further, it talks about how you can pull the httpd image from the public registry to configure a web server on a container and expose it to the public.
Start by setting up the Ansible Controller node — edit the hosts’ file to create appropriate host groups to include the managed nodes that are to be a part of this Configuration.
I have a [docker] host group as follows:
HAProxy is a Load Balancer, that balances load on a server by distributing it across the replicated servers, in a round robin fashion.
This article demonstrates how you can set up haproxy and dynamically add the IPs of the replicated server as they join the inventory of the webserver list.
What this Demonstration include?
1. Installing software like httpd and PHP on a list of hosts to configure web server
2. Copying a simple PHP script in the document root of the servers
3. Initiating the web service
4. Installing the haproxy software
5. Updating the Configuration file to add…
We all know how Cloud Computing is ruling the market today, with business-critical functions and infrastructure being migrated from the legacy infrastructure to the Cloud. This is because of the immense functionality and ease of use that Cloud Providers like AWS, Azure, Google have built for us.
This article briefly talks about how can one create a high availability architecture to reduce the latency involved in serving the requests.
A Quick Overview:
The architecture includes-
1. Webserver configured on EC2 Instance
2. Document Root(/var/www/html) made persistent by mounting on EBS Block Device.
3. Static objects used in code such as…
In this blog, we will understand how unnecessary restarts of a web server can be avoided by using handlers in the Ansible playbook.
We are trying to set up an httpd server using Ansible. We want to automate the restarting of the web server in case any change occurs in the configuration file. This can be achieved using the template module. We can replace the new version of the configuration file with the old one by using the template module and using the jinja templates to make edits to the file.
Later, the service can be restarted using the service…
Today, we will discuss how can you configure a Hadoop cluster using Ansible.
So, let’s get started.
The Setup: I have two nodes, one of which is the controller node, and the other is the target node. These nodes are Linux-based RHEL systems. I have configured local DNS using the /etc/hosts file by mentioning the DNS name and the IP address of the node. The controller node is called the master, and the target node is called the node1.
I also have configured password-less login via SSH from the controller node to all the target nodes. …
Student | ARTH Learner | Exploring Technologies