Skip to content

Instantly share code, notes, and snippets.

View rgodishela's full-sized avatar

Ramesh Godishela rgodishela

  • https://github.com/salesforce
  • Hyderabad, India
View GitHub Profile
# (c) 2015, Yannig Perre <yannig.perre(at)gmail.com>
#
# This file is part of Ansible
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Ansible is distributed in the hope that it will be useful,
@rgodishela
rgodishela / vagrant-cheat-sheet.md
Created September 30, 2016 11:03 — forked from wpscholar/vagrant-cheat-sheet.md
Vagrant Cheat Sheet

Typing vagrant from the command line will display a list of all available commands.

Be sure that you are in the same directory as the Vagrantfile when running these commands!

Common Vagrant Commands

  • vagrant up -- starts vagrant environment (also provisions only on the FIRST vagrant up)
  • vagrant status -- outputs status of the vagrant machine
  • vagrant halt -- stops the vagrant machine
  • vagrant reload -- restarts vagrant machine, loads new Vagrantfile configuration
  • vagrant provision -- forces reprovisioning of the vagrant machine
@rgodishela
rgodishela / Docker Private Registry
Created April 23, 2017 16:03
Docker-registry enables you to store your docker images and helps you to access them locally and within your organisation.
1. Install docker-registry
yum install docker-registry
2. Install firewalld
yum install firewalld
3. enable the Docker service to come alive after reboot
systemctl enable docker
4. Start the docker daemon
@rgodishela
rgodishela / Install ansible
Created April 23, 2017 16:04
Install Ansible in Redhat/Ubuntu Family.
Ansible Installation in Redhat Family
Download the epel-release using rpm
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
Download ansible
sudo yum install ansible -y
Check the version
ansible --version
@rgodishela
rgodishela / AWS Dynamic Inventory using Ansible
Created April 23, 2017 16:06
AWS Dynamic inventory creation using Ansible.
AWS Dynamic inventory creation using Ansible.
— Download Boto
sudo pip install boto
— Find the Access ID and Security Key from your aws account.
— Get the Access ID, and Security Key
— Make sure that right Policy’s are assigned
@rgodishela
rgodishela / Ansible on OS X
Created April 23, 2017 16:08
Install Ansible on OS X
INSTALL ANSIBLE
Firstly do check your system details using “uname -a”
Install PIP in your Mac
Install Ansible using ” sudo -H pip install ansible”
VERIFY ANSIBLE
You may verify the version of the ansible using “sudo ansible –version”
Please note that It will not create any directory in /etc like “Debian/RedHat” OS Family.
@rgodishela
rgodishela / Vagrant on Windows x86_64
Created April 23, 2017 16:09
Vagrant on Windows x86_64
1.Download below tools into your local machine
Putty
Puttygen
Virtualbox
Vagrant
2.Create a project
Go to command Line
Create directory
@rgodishela
rgodishela / Deployments Terminology
Created April 23, 2017 16:10
Deployments Terminology
Blue-green deployment is a release technique that reduces downtime and risk by running two identical production environments called Blue and Green.
At any time, only one of the environments is live, with the live environment serving all production traffic. For this example, Blue is currently live and Green is idle.
As you prepare a new release of your software, deployment and the final stage of testing takes place in the environment that is not live: in this example, Green. Once you have deployed and fully tested the software in Green, you switch the router so all incoming requests now go to Green instead of Blue. Green is now live, and Blue is idle.
This technique can eliminate downtime due to application deployment. In addition, blue-green deployment reduces risk: if something unexpected happens with your new release on Green, you can immediately roll back to the last version by switching back to Blue.
BROWNFIELD DEPLOYMENTS
@rgodishela
rgodishela / OpenConnect Installation
Created April 23, 2017 16:12
OpenConnect Installation
OpenConnect Installation:
Go to OpenConnect Downloads Page, Right Click on Latest release to copy the link location.
Download the package into your machine,
wget ftp://ftp.infradead.org/pub/openconnect/openconnect-7.06.tar.gz
Untar the file, tar -xvf openconnect-7.06.tar.gz
Go into the directory, cd openconnect-7.06
Create VPNC directory under /etc, mkdir -vp /etc/vpnc
vim /etc/vpnc/vpnc-script
copy the content from http://git.infradead.org/users/dwmw2/vpnc-scripts.git/blob_plain/HEAD:/vpnc-script
git config --global push.default matching
git config --global user.email "iamrameshjonathan@gmail.com"
git config --global user.name "Ramesh Godishela"