Studio-DevOps

Setting Up Cassandra Cluster Through Ansible

Reading Time: 3 minutes In this post, we will use Ansible to and set-up an Apache Cassandra database cluster. We will use AWS EC2 instances as the nodes for the cluster. Creating a cluster manually is a tedious task. We have to manually configure each node and each node must be correctly configured before starting the cluster.With Ansible, we can automate the task and let Ansible handle the configuration Continue Reading

Introduction to AWS Step Function

Reading Time: 2 minutes Step Function is state-machine based workflow coordination as a service provided by AWS. AWS provides a straightforward way for application developers to create an execution workflow to coordinate the use of multiple AWS Lambda or Amazon Elastic Compute Cloud (EC2) components in distributed applications running on the cloud. Before digging into AWS Step function, let’s take an example. You want to send an automated verification message to the new user Continue Reading

Knolx: Demystifying Mesos

Reading Time: < 1 minute Hello everyone, Knoldus organized a session on Fri Dec 15, 2017. The topic was “Introduction to Mesos”. Many people attended and enjoyed the session. In this blog post, I am going to share the slides & video of the session. Slides: Introduction to Apache Mesos from Knoldus Inc.

NGINX – Redirecting HTTP to HTTPS

Reading Time: < 1 minute Using HTTPS is highly recommended and I cannot stop when explaining the benefits of using it! Also something which is more important is to make sure when HTTPS is setup it is ensured that all traffic via HTTP is blocked in a way that it is redirected to HTTPS. This can be easily achieved by giving NGINX the following set of instructions in the virtual Continue Reading

NGINX – Load Balancing your application made easy

Reading Time: 3 minutes Often there are requirements to load balance your application in order to scale out and make your application more performant and NGINX can be used to do just that! It can distribute your traffic to several application servers. There are several load balancing methods available in NGINX which are round robin – wherein the requests are distributed in a round-robin fashion least connected – request Continue Reading

NGINX – Redirecting traffic between www and non-www domain

Reading Time: < 1 minute Just in case you ever wondered whether the re-routing from www to non-www or non-www to www domain is possible using NGINX then you bet it is! In fact it is very simple and can be done using the following steps 1. Redirecting from www to non-www Setup a initial virtual server block to point your domain to your content, a simple example would look something Continue Reading

NGINX – Restrict access to Geographical Locations using GeoIP module

Reading Time: 2 minutes In this post I’ll try to explain how NGINX GeoIP module can be used to restrict access to your web-portal/website only to a specific geographical region. Begin by verifying NGINX GeoIP module is installed on the server which can be done via nginx -V if you can see –with-http_geoip_module in the output you are ready to use the GeoIP database with NGINX but if not you Continue Reading

NGINX – Disable direct access (via http and https) to a website using IP address

Reading Time: < 1 minute For the requirements wherein direct access to a website using IP address has to be disabled/blocked, following steps can be followed To disable/block direct access to IP for port 80 create a new or add to an existing (as required) server configurations as follows server { listen 80 default_server; server_name _; return 404; } where _ catches all the domain names pointing to your server’s Continue Reading

NGINX – Easiest way to setup SSL using .pfx files

Reading Time: < 1 minute I’ll try to explain the easiest way to use a .pfx file that can be used to install SSL on NGINX. We’ll start by extracting the CRT file using openssl with the following command openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -clcerts -nokeys -out domain.crt Followed by extracting the private key with the following command openssl pkcs12 -in ./YOUR-PFX-FILE.pfx -nocerts -nodes -out domain.rsa

Trim Your Playbooks.

Reading Time: 4 minutes When you mention re usability to a developer his/her ears will perk up. If you understand re usability, you will know beforehand, that this developer isn’t going to talk about copy & paste. So, Is it possible to have that reuse ability in playbooks? Can we write a short playbook?

Ansible Playbook Using Templates

Reading Time: 5 minutes Managing configurations of multiple servers and environments are one of the significant uses of Ansible. But these configuration files may vary for each remote servers or each cluster. But apart from some few parameters, all other settings will be same. Creating static files for each of these configurations is not an efficient solution and it will take a lot more time and every time a Continue Reading

Understanding Ansible Playbook

Reading Time: 5 minutes   Ansible is an open-source software that automates software provisioning, configuration management and application deployment, similar to Chef, Puppet or Salt. Ansible lets us control and configure nodes from a single machine. It is different from other management software in a way where Ansible uses SSH infrastructure and uses push mode and the configuration is pushed from a master machine to nodes. Ansible achieves all Continue Reading

Ansible: Do more with ease.

Reading Time: 5 minutes In software engineering, software configuration management (SCM or S/W CM) is the task of tracking and controlling changes in the software, part of the larger cross-disciplinary field of configuration management. SCM practices include revision control and the establishment of baselines. If something goes wrong, SCM can determine what was changed and who changed it. If a configuration is working well, SCM can determine how to Continue Reading