<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shashi Yebbare on Medium]]></title>
        <description><![CDATA[Stories by Shashi Yebbare on Medium]]></description>
        <link>https://medium.com/@skydevops?source=rss-84f22e522dfa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Shashi Yebbare on Medium</title>
            <link>https://medium.com/@skydevops?source=rss-84f22e522dfa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 20:52:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@skydevops/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[SonarQube installation on Ubuntu 16.04 LTS]]></title>
            <link>https://medium.com/@skydevops/sonarqube-installation-on-ubuntu-16-04-lts-a23eccb20ad2?source=rss-84f22e522dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/a23eccb20ad2</guid>
            <category><![CDATA[sonarqube]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[sonar]]></category>
            <dc:creator><![CDATA[Shashi Yebbare]]></dc:creator>
            <pubDate>Fri, 10 Jan 2020 14:26:54 GMT</pubDate>
            <atom:updated>2020-01-10T14:48:17.813Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*SqlYtDYmOztc8fNfJ8K2bg.png" /></figure><blockquote>Following are the references to my other blog, which will help in installing and configuring Java and Nginx</blockquote><ul><li><a href="https://skydevops.co.in/2017/09/17/java-installation-ubuntu/">Java Installation - Ubuntu</a></li><li><a href="https://skydevops.co.in/2016/02/26/install-nginx-from-source/">Install Nginx from Source</a></li></ul><h3><strong>Step-01: Update the Package Cache</strong></h3><blockquote>sudo apt-get update<br>sudo apt-get -y upgrade</blockquote><h3><strong>Step-02: Install Oracle Java JDK</strong></h3><blockquote>sudo add-apt-repository ppa:webupd8team/java<br>sudo apt-get update<br>sudo apt install oracle-java8-installer</blockquote><h3><strong>Step-03: Install postgresql DB</strong></h3><blockquote>sudo sh -c ‘echo “deb <a href="http://apt.postgresql.org/pub/repos/apt/">http://apt.postgresql.org/pub/repos/apt/</a> `lsb_release -cs`-pgdg main” &gt;&gt; /etc/apt/sources.list.d/pgdg.list’<br>wget -q <a href="https://www.postgresql.org/media/keys/ACCC4CF8.asc">https://www.postgresql.org/media/keys/ACCC4CF8.asc</a> -O — | sudo apt-key add -<br>sudo apt-get -y install postgresql postgresql-contrib<br>sudo systemctl start postgresql<br>sudo systemctl enable postgresql</blockquote><h3><strong>Step-04: Change the password for the default PostgreSQL user</strong></h3><blockquote>sudo passwd postgres</blockquote><h3><strong>Step-05: Create new user</strong></h3><blockquote>su — postgres<br>createuser sonar<br># switch to postgresql prompt<br>psql<br>ALTER USER sonar WITH ENCRYPTED password ‘StrongPassword’;<br>CREATE DATABASE sonar OWNER sonar;<br>\q</blockquote><h3><strong>Step-06: Download Sonar</strong></h3><blockquote>wget <a href="https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-7.6.zip">https://sonarsource.bintray.com/Distribution/sonarqube/sonarqube-7.6.zip</a><br>sudo unzip sonarqube-7.6.zip -d /opt<br>sudo mv /opt/sonarqube-7.6 /opt/sonarqube<br>sudo Vim /opt/sonarqube/conf/sonar.properties<br> sonar.jdbc.username=sonar<br> sonar.jdbc.password=StrongPassword<br> sonar.jdbc.url=jdbc:postgresql://localhost/sonar</blockquote><h3><strong>Step-07: Install Sonarqube as system service</strong></h3><blockquote>sudo vim /etc/systemd/system/sonar.service</blockquote><blockquote>[Unit]<br>Description=SonarQube service<br>After=syslog.target network.target</blockquote><blockquote>[Service]<br>Type=forking</blockquote><blockquote>ExecStart=/opt/sonarqube/bin/linux-x86–64/sonar.sh start<br>ExecStop=/opt/sonarqube/bin/linux-x86–64/sonar.sh stop</blockquote><blockquote>User=root<br>Group=root<br>Restart=always</blockquote><h3><strong>Step-08: Start and enable sonar service</strong></h3><blockquote>sudo systemctl start sonar<br>sudo systemctl enable sonar<br>sudo systemctl status sonar</blockquote><h3><strong>Step-09: Nginx Reverse Proxy for sonar</strong></h3><blockquote>server {<br> listen 80;<br> server_name sonarqube.domain.com;</blockquote><blockquote>location / {<br> proxy_pass <a href="http://127.0.0.1:9000/">http://127.0.0.1:9000/</a>;<br> }<br>}</blockquote><h3><strong>Step-10: Access Sonar</strong></h3><blockquote>Access soanr at<br>sonarqube.domain.com, default username/password are admin/admin</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a23eccb20ad2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Install Jenkins as a service on Centos/RHEL 7.x Behind Nginx]]></title>
            <link>https://medium.com/@skydevops/install-jenkins-as-a-service-on-centos-rhel-7-x-behind-nginx-631f13e5d470?source=rss-84f22e522dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/631f13e5d470</guid>
            <category><![CDATA[nginx-reverse-proxy]]></category>
            <category><![CDATA[nginx]]></category>
            <category><![CDATA[jenkins]]></category>
            <dc:creator><![CDATA[Shashi Yebbare]]></dc:creator>
            <pubDate>Sat, 12 May 2018 06:34:59 GMT</pubDate>
            <atom:updated>2020-04-17T13:41:04.025Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*s8mwAOWdb2choX4pj9ozvw.png" /></figure><p>Following is a guide for installing <strong><em>Jenkins</em></strong> <strong><em>as a service</em></strong> on Google compute engine on a Centos box behind <strong><em>Nginx</em></strong> web server</p><h3>Following is the main blog reference:</h3><ul><li><a href="https://skydevops.wordpress.com/2017/09/19/jenkins-installation-on-centos-behind-nginx/">Jenkins installation on Centos behind Nginx</a></li><li><a href="https://skydevops.co.in/2016/03/14/install-jenkins-on-rhelcentos-behind-nginx/">Install Jenkins on RHEL/CentOS behind Nginx</a></li><li><a href="https://skydevops.co.in/2016/03/14/install-java-8-on-centos/">Install Java 8 on CentOS</a></li><li><a href="https://skydevops.co.in/2016/02/26/install-nginx-from-source/">Install Nginx from Source</a></li></ul><h3>Step-01: timezone settings [optional]</h3><blockquote>$ sudo timedatectl set-timezone Asia/Kolkata</blockquote><h3>Step-02: package update and required softwares</h3><blockquote>$ sudo yum update -y &amp;&amp; sudo yum upgrade -y &amp;&amp; sudo yum install nginx wget lsof zip unzip -y</blockquote><h3>Step-03: java installation openjdk</h3><blockquote>$ sudo yum install java-1.8.0-openjdk java-1.8.0-openjdk-devel -y</blockquote><h3>Step-04: setting up environmental variables</h3><blockquote>$ sudo vi /etc/profile.d/jdk.sh</blockquote><blockquote>#!/bin/sh<br> export JAVA_HOME=/lib/jvm/java-1.8.0-openjdk<br> export JRE_HOME=$JAVA_HOME/jre<br> export PATH=$PATH:$JAVA_HOME/bin:$JRE_HOME/bin</blockquote><blockquote># adding env variables<br>cd /etc/profile.d<br>sudo chmod +x jdk.sh<br>source jdk.sh</blockquote><h3>Step-05: Create non-root user</h3><blockquote># jenkins user creation<br>sudo adduser jenkins<br>sudo passwd jenkins</blockquote><h3>Step-06: Installing Jenkins</h3><blockquote># jenkins installation<br>sudo mkdir -p /opt/cicd /opt/tools<br>sudo chown -R jenkins:jenkins /opt/cicd /opt/tools<br>cd /opt/tools</blockquote><h3>Step-07: Download Jenkins WAR file</h3><blockquote># downlaod jenkins<br>sudo wget <a href="https://updates.jenkins-ci.org/download/war/2.90/jenkins.war">https://updates.jenkins-ci.org/download/war/2.90/jenkins.war</a></blockquote><h3>Step-08:Install jenkins as a servce</h3><blockquote># jenkins service installation<br>sudo vi /etc/systemd/system/jenkins.service</blockquote><pre>[Unit]<br>Description=SKYDEVOPS Jenkins CI-CD Server</pre><pre>[Service]<br>Environment=JENKINS_HOME=/opt/cicd<br>ExecStart=/usr/bin/java -jar /opt/tools/jenkins.war<br>User=jenkins</pre><pre>[Install]<br>WantedBy=multi-user.target</pre><h3>Step-09: Enabling and starting Service</h3><blockquote># enabling service<br>sudo systemctl daemon-reload<br>sudo chmod +x /etc/systemd/system/jenkins.service<br>sudo systemctl start jenkins</blockquote><h3>Step-10: Configuring Nginx for Jenkins</h3><blockquote># nginx configuration<br>cd /etc/nginx<br>sudo cp nginx.conf nginx.conf.bak<br>sudo rm -rf nginx.conf</blockquote><h3>Step-11: nginx.conf file</h3><pre>$ sudo vim nginx.conf</pre><pre>user jenkins nginx;<br>worker_processes auto;<br>error_log /var/log/nginx/error.log;<br>pid /run/nginx.pid;</pre><pre># Load dynamic modules. See /usr/share/nginx/README.dynamic.<br>include /usr/share/nginx/modules/*.conf;</pre><pre>events {<br> worker_connections 1024;<br>}</pre><pre>http {<br> log_format main ‘$remote_addr — $remote_user [$time_local] “$request” ‘<br> ‘$status $body_bytes_sent “$http_referer” ‘<br> ‘“$http_user_agent” “$http_x_forwarded_for”’;</pre><pre>access_log /var/log/nginx/access.log main;</pre><pre>sendfile on;<br> tcp_nopush on;<br> tcp_nodelay on;<br> keepalive_timeout 65;<br> types_hash_max_size 2048;<br> server_tokens off;</pre><pre>include /etc/nginx/mime.types;<br> default_type application/octet-stream;</pre><pre>include /etc/nginx/conf.d/*.conf;<br>}</pre><h3>Step-12: Adding jenkins conf</h3><p>$ cd /etc/nginx/conf.d/</p><pre>$ sudo vi jenkins.conf</pre><pre>server {<br> listen 80;<br> server_name jenkins.skydevops.in;</pre><pre>#this is the jenkins web root directory (mentioned in the /etc/default/jenkins file)<br> # root /var/run/jenkins/war/;</pre><pre>access_log /var/log/nginx/jenkins.access.log;<br> error_log /var/log/nginx/jenkins.error.log;</pre><pre>location ~ “^/static/[0–9a-fA-F]{8}\/(.*)$” {<br> rewrite “^/static/[0–9a-fA-F]{8}\/(.*)” /$1 last;<br> }</pre><pre>location /userContent {<br> root /opt/cicd/;</pre><pre>if (!-f $request_filename) {<br> rewrite (.*) /$1 last;<br> break;<br> }<br> sendfile on;<br> }</pre><pre>location <a href="http://twitter.com/jenkins">@jenkins</a> {<br> sendfile off;<br> proxy_pass <a href="http://127.0.0.1:8080/">http://127.0.0.1:8080</a>;<br> proxy_redirect off;</pre><pre>proxy_set_header X-Forwarded-Proto $scheme;<br> proxy_set_header Host $host;<br> proxy_set_header X-Real-IP $remote_addr;<br> proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br> proxy_max_temp_file_size 0;</pre><pre>#this is the maximum upload size<br> client_max_body_size 10m;<br> client_body_buffer_size 128k;</pre><pre>proxy_connect_timeout 90;<br> proxy_send_timeout 90;<br> proxy_read_timeout 90;</pre><pre>proxy_buffer_size 4k;<br> proxy_buffers 4 32k;<br> proxy_busy_buffers_size 64k;<br> proxy_temp_file_write_size 64k;<br> }</pre><pre>location / {</pre><pre># Optional configuration to detect and redirect iPhones<br> if ($http_user_agent ~* ‘(iPhone|iPod)’) {<br> rewrite ^/$ /view/iphone/ redirect;<br> }</pre><pre>try_files $uri <a href="http://twitter.com/jenkins">@jenkins</a>;<br> }<br>}</pre><h3>Step-13: Starting and enabling Nginx</h3><blockquote># staring nginx<br>sudo nginx -ts reload<br>sudo systemctl start nginx<br>sudo systemctl enable nginx</blockquote><h3>Step-14: Adding Firewall rules</h3><blockquote># firewalld settings<br>sudo firewall-cmd — permanent — zone=public — add-port=8080/tcp<br>sudo firewall-cmd — permanent — zone=public — add-port=80/tcp<br>sudo firewall-cmd — reload</blockquote><h3>Step-15: Adding SELinux Context</h3><blockquote># SELinux http context<br>sudo /usr/sbin/setsebool httpd_can_network_connect true</blockquote><h3>Step-16: Allow nginx through SELinux</h3><blockquote># SELinux module for nginx<br>sudo cat /var/log/audit/audit.log | grep nginx | grep denied | audit2allow -M mynginx</blockquote><h3>Step-17: Access Jenkins</h3><blockquote># can acess jenkins on IP address of the box or through the FQDN<br>http://IP_ADDRESS<br>http://jenkins.skydevops.in</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=631f13e5d470" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ansible on Ubuntu 16.04 using Virtualenv]]></title>
            <link>https://medium.com/@skydevops/ansible-on-ubuntu-16-04-using-virtualenv-e8af25baf6a3?source=rss-84f22e522dfa------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8af25baf6a3</guid>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[ansible]]></category>
            <category><![CDATA[virtualenv]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Shashi Yebbare]]></dc:creator>
            <pubDate>Sat, 12 May 2018 05:49:14 GMT</pubDate>
            <atom:updated>2018-05-12T06:01:15.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yRraRMDMl0LbjwcPaBe82Q.png" /></figure><p>Introduction to installation of <strong><em>Ansible control host</em></strong> on Google cloud platform on Ubuntu 16.04, under isolated python virtual environment.</p><pre>This post can also be found at the following link: <a href="http://skydevops.in/2018/04/30/ansible-on-ubuntu-16-04-lts-using-virtualenv/">ansible-on-ubuntu-16–04-lts-using-virtualenv</a>, <a href="http://skydevops.in/2018/04/30/ansible-on-ubuntu-16-04-lts-using-virtualenv/">Ansible on Ubuntu 16.04 LTS using Virtualenv</a></pre><p>Advantages of isolating environment</p><blockquote>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.</blockquote><ol><li>Creating a instance on GCP — Compute Engine</li><li>SSH access to the Cloud Machine</li><li>Installing pre-requisites and dependencies</li><li>creating virtual environment</li><li>using PIP, install Ansible Control Host</li></ol><h3><strong>Step-01: Creare GCP instance</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/832/1*lIfm1x6dsWVum9mdKrGd6w.png" /></figure><h3><strong>Step-02: Enter VM details</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*19J07mvceQMKM-Y5MnPMQA.png" /></figure><h3><strong>Step-03: Select Bootdisk</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*4qV9FhAtBoOjhcyX-b4BGw.png" /></figure><h3><strong>Step-04: Start the VM</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/916/1*nxVzgqGn3Acdtde70Ryo-Q.png" /></figure><h3><strong>Step-05: SSH into the machine</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_K9MYyAwdyITMgPFWBlUpA.png" /></figure><h3><strong>Step-06: Update package cache &amp; install pre-requisites</strong></h3><blockquote>$ sudo apt-get update<br> $ sudo apt-get install python python-pip virtualenv -y</blockquote><h3><strong>Step-07: Setting up ansible directory</strong></h3><blockquote>$ cd /opt<br>$ mkdir ansible<br>$ cd ansible</blockquote><h3><strong>Step-08: Adding permissions</strong></h3><blockquote>$ sudo chown -R $USER:$USER /opt/ansible</blockquote><h3><strong>Step-09: creating Virtual environment</strong></h3><blockquote>$ cd /opt/ansible<br>$ virtualenv skyvenv27a</blockquote><h3><strong>Step-10: Enabling Virtualenv</strong></h3><blockquote>$ source skyvenv27a/bin/activate</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eSjV2w3sTEgCwEu6cbPkNA.png" /></figure><h3><strong>Step-11: Install Ansible in the isolated environment</strong></h3><blockquote># Using pip we shall install ansible<br> $ pip --version</blockquote><blockquote># Update pip if needed<br> $ pip install --upgrade pip</blockquote><blockquote># Install Ansible<br> $ pip install ansible # Installs the latest stable release</blockquote><blockquote># To install latest dev release<br> $ pip install git+https://github.com/ansible/ansible</blockquote><h3><strong>Step-12: verifying ansible installation</strong></h3><blockquote>$ ansible --version</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tpoXcrCst-ueCaJ9e2u9zg.png" /></figure><h3><strong>Step-13: validating Installation</strong></h3><blockquote>$ ansible all -i localhost, -c local -m ping</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Pdnjw7rbGj_aYQPBLSdC_g.png" /></figure><h3><strong>Step-14: Done !!</strong></h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8af25baf6a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>