Image for post
Image for post

Following are the references to my other blog, which will help in installing and configuring Java and Nginx

Step-01: Update the Package Cache

sudo apt-get update
sudo apt-get -y upgrade

Step-02: Install Oracle Java JDK

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt install oracle-java8-installer

Step-03: Install postgresql DB

sudo sh -c ‘echo “deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg main” >> /etc/apt/sources.list.d/pgdg.list’
wget -q https://www.postgresql.org/media/keys/ACCC4CF8.asc -O — | sudo apt-key add -
sudo apt-get -y install postgresql postgresql-contrib
sudo systemctl start postgresql
sudo systemctl enable postgresql

Step-04: Change the password for the default PostgreSQL user

sudo passwd postgres

Step-05: Create new user

su — postgres
createuser sonar
# switch to postgresql prompt
psql
ALTER USER sonar WITH ENCRYPTED password ‘StrongPassword’;
CREATE DATABASE sonar OWNER sonar;
\q

Step-06: Download Sonar

wget https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-7.6.zip sudo…


Image for post
Image for post

Following is a guide for installing Jenkins as a service on Google compute engine on a Centos box behind Nginx web server

Following is the main blog reference:

Step-01: timezone settings [optional]

$ sudo timedatectl set-timezone Asia/Kolkata

Step-02: package update and required softwares

$ sudo yum update -y && sudo yum upgrade -y && sudo yum install nginx wget lsof zip unzip -y

Step-03: java installation openjdk

$ sudo yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y

Step-04: setting up environmental variables

$ sudo vi /etc/profile.d/jdk.sh

#!/bin/sh
export JAVA_HOME=/lib/jvm/java-1.8.0-openjdk
export JRE_HOME=$JAVA_HOME/jre
export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin

# adding env variables
cd /etc/profile.d
sudo chmod +x jdk.sh
source jdk.sh

Step-05: Create non-root user

# jenkins user creation
sudo adduser jenkins
sudo passwd jenkins

Step-06: Installing Jenkins

# jenkins installation sudo mkdir -p /opt/cicd /opt/tools sudo chown -R jenkins:jenkins /opt/cicd…


Image for post
Image for post

Introduction to installation of Ansible control host on Google cloud platform on Ubuntu 16.04, under isolated python virtual environment.

This post can also be found at the following link: ansible-on-ubuntu-16–04-lts-using-virtualenv, Ansible on Ubuntu 16.04 LTS using Virtualenv

Advantages of isolating environment

By isolating the environment, we can have multiple versions of ansible deployed on the same machine, which do not intervene with the other environments, which is very good for testing out new releases with out breaking the existing environment.

  1. Creating a instance on GCP — Compute Engine
  2. SSH access to the Cloud Machine
  3. Installing pre-requisites and dependencies
  4. creating virtual…

Shashi Yebbare

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store