Skip to content

Instantly share code, notes, and snippets.

View swarupdonepudi's full-sized avatar
🎯
Focusing

Swarup Donepudi swarupdonepudi

🎯
Focusing
View GitHub Profile
@swarupdonepudi
swarupdonepudi / tomcat_install_steps.md
Last active October 18, 2023 09:42
Installation instructions for tomcat on CentOS 7
  1. Install Java on the VM by running the command

    yum -y install java-1.8.0-openjdk.x86_64
  2. Check the version of Java installed

    java –version
  3. Create a dedicated user for Apache Tomcat. For security purposes, you need to create a dedicated non-root user "tomcat" who belongs to the "tomcat" group:

@swarupdonepudi
swarupdonepudi / jenkins_install_steps.md
Last active February 28, 2017 19:31
Installation instructions for jenkins running on tomcat on CentOS 7

Prerequisites : Machine running CentOS 7 and tomcat installed on it. Please find instructions to install tomcat on CentOS 7 here.

  1. set two environment variables: "JAVA_HOME" and "JRE_HOME"

    sudo cp /etc/profile /etc/profile_backup
     echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile
     echo 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profile
     source /etc/profile
  2. Download jenkins.war file from internet

@swarupdonepudi
swarupdonepudi / set_up_ssh_authentication_using_keys.md
Created February 28, 2017 03:09
Steps to setup SSH authentication using encryption key pair
  1. Let us assume that we have two machines - MachineOne & MachineTwo running any flavour of Unix operating system. For this gist we are going to use two machines running CentOS 7.

Steps to do on MachineOne:

@swarupdonepudi
swarupdonepudi / ansible_setup.md
Last active February 28, 2017 03:21
Installation & hosts configuration instructions for Ansible on CentOS

#Install Ansible

  1. To get Ansible for CentOS 7, first ensure that the CentOS 7 EPEL repository is installed
sudo yum install epel-release
  1. Once the repository is installed, install Ansible with yum:
sudo yum install ansible
@swarupdonepudi
swarupdonepudi / ansible_hello_world.md
Last active July 23, 2022 01:59
Hello world with Ansible - Running a simple playbook

In this guide, I am going to show you how to set up ansible on CentOS 7 to run a simple playbook. This guide assumes that you have already installed ansible on your machine. If you haven't done that yet, please find the instructions to install ansible here.

The playbook that we are going to use in this guide is going to have instructions to create an empty file in the home folder of the user that ansible runs the playbook as.

I will use the term controller-node to refer to the node on which ansible is installed and the playbook run is initiated.

I will use the term target-node to refer to the machine to which ansible makes the changes to.

Below is the contents of the playbook:

@swarupdonepudi
swarupdonepudi / create_ssh_keypair.md
Last active February 28, 2017 19:28
Steps to create new SSH Keypair

Prerequisites: Machine running any unix flavoured operating system

Steps to create a new SSH Keypair:

  1. Run the below command on the command prompt
ssh-keygen
  1. Give the new keypair a name
  2. Securing the keypair with a pass phrase is optional. So, just press return key twice
@swarupdonepudi
swarupdonepudi / kubernetes_intro_simple.md
Created March 1, 2017 16:17
A simple introduction of Kubernetes

What is Kubernetes?

@swarupdonepudi
swarupdonepudi / docker_into_simple.md
Created March 1, 2017 16:18
A simple introduction of Docker

What is Docker?

@swarupdonepudi
swarupdonepudi / LXC_intro_simple.md
Created March 1, 2017 16:20
What are Linux Containers (LXC)?

What are Linux Containers?

@swarupdonepudi
swarupdonepudi / rocket_intro_simple.md
Created March 1, 2017 19:29
What is rocket(rkt)?

What is rocket(rkt)?