Install Selenium on Ubuntu 14.04

#First, install Google Chrome for Debian/Ubuntu:

sudo apt-get install chromium-browser

sudo apt-get install libxss1 libappindicator1 libindicator7
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

sudo dpkg -i google-chrome*.deb
sudo apt-get install -f
#Now, let’s install xvfb so we can run Chrome headlessly:

sudo apt-get install xvfb

#Install ChromeDriver

sudo apt-get install unzip

wget -N http://chromedriver.storage.googleapis.com/2.20/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
chmod +x chromedriver

sudo mv -f chromedriver /usr/local/share/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver

#Install some Python dependencies for Selenium:

sudo apt-get install python-pip

## (Optional) Create and enter a virtual environment:
# sudo apt-get install python-virtualenv
# virtualenv env
# source env/bin/activate

pip install pyvirtualdisplay selenium

#Now, we can do stuff like this with Selenium in Python:

from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get(‘https://devops.org.in’)
print driver.title

 

if you have to call from within jenkins

 

import sys
from pyvirtualdisplay import Display
from selenium import webdriver

display = Display(visible=0, size=(800, 600))
display.start()
driver = webdriver.Chrome()
driver.get(‘http://ipaddress:8080/test/’)
print driver.title
var1 = driver.title
print var1
#if driver.title is ‘HelloJava’:
if “HelloJava” in var1:
print “Test Successful”
else:
raise Exception(“Test Failed”)

Install Sonarqube on Ubuntu 14.04

#First install puppet

sudo su –

apt-get update

apt-get install puppet

#Then install puppet module for installing sonarqube
puppet module uninstall puppetlabs-java
puppet module install maestrodev-sonarqube

#Once module is installed, create a .pp file
nano sonarqube.pp
#Enter the below content inside the file
class { ‘java’: }
class { ‘sonarqube’ :
version => ‘5.1’,
}
#save file and run file using below command
puppet apply –verbose sonarqube.pp

#Run Nexus
firefox hostname:9000

Installing Sonatype Nexus on Ubuntu 14.04

#First install puppet

sudo su –

apt-get update

apt-get install puppet

#Then install puppet module for installing nexus
puppet module install hubspot-nexus

#Once module is installed, create a .pp file
nano nexus.pp
#Enter the below content inside the file
class{ ‘::java’: }

class{ ‘::nexus’:
version => ‘2.12.0’,
revision => ’01’,
nexus_root => ‘/srv’, # All directories and files will be relative to this
}

Class[‘::java’] ->
Class[‘::nexus’]

#save file and run file using below command
puppet apply –verbose nexus.pp

#Run Nexus
firefox hostname:8081/nexus

Installing Jenkins on Ubuntu 14.04

#First install puppet

sudo su -

apt-get update

apt-get install puppet

#Then install puppet module for install Jenkins
puppet module install rtyler-jenkins

#Once module is installed, create a .pp file

nano jenkins.pp

#Write the below contents inside file
include jenkins
#Run the file with puppet
puppet apply --verbose jenkins.pp

#launch jenkins web gui
firefox hostname:8080


		

Installing Gitlab on Ubuntu 14.04

#First install puppet

sudo su -

apt-get update

apt-get install puppet

#Then install puppet module for install gitlab

puppet module install vshn-gitlab

#Once module is installed, create a .pp file

nano gitlab.pp

#Write the below contents inside file
class { 'gitlab':
  external_url => 'http://gitlab.mydomain.tld',
}
# in the above code change the gitlab.mydomain.tld to the dns resolvable hostname of your server
#Run the file with puppet
puppet apply --verbose gitlab.pp

# Now navigate to the homepage of gitlab
firefox gitlab.mydomain.tld
#OR
apt-get install lynx
lynx gitlab.mydomain.tld

Installing Chef Server

Requirement:

intel 64 bit installation of Ubuntu 14.04 with 4GB RAM

Installation Steps:

  1. wget https://web-dl.packagecloud.io/chef/stable/packages/ubuntu/trusty/chef-server-core_12.0.8-1_amd64.deb
  2. sudo dpkg -i chef-server-core_*.deb
  3. sudo chef-server-ctl reconfigure

Configuration Steps:

1. sudo chef-server-ctl user-create username firstname lastname email password –filename ~/.chef/username.pem

As Example:

sudo chef-server-ctl user-create steve steve sullivan steve@study9.com stevepassword –filename ~/.chef/steve.pem

 

2. sudo chef-server-ctl org-create shortname fullname –association_user username –filename ~/.chef/shortname.pem

As Example:

sudo chef-server-ctl org-create study9 Study9 –association_user steve –filename ~/.chef/study9.pem

Puppet Chef Training

Puppet and Chef programming are the two most valued technology skillsets in today’s job market. Many companies are looking for hiring skilled resources who know either puppet or chef. Both of these fall under the domain of desired state configuration management. Conceptually they are both very similar although syntaxes are quite different. Puppet is the leader in this domain but chef is also a formidable challenger gaining more and more footprint everyday. For anyone starting serious career in devops, need to learn atleast one of the two. But even then, the market coverage will be only half with only one tool’s knowledge. Since the concepts are similar, it is better to learn both together and instead cover whole of the market for these two technologies. Hence this course is a combined approach to cover both the courses to the extent adequate enough to get a good starting profile job in the devops market.


Contact: +919731012185/ For USA: +1 408 556-9065


Online Self Paced Training (SPT) with Videos and Documents – INR 5000


Online Instructor Led Live Classroom Training – INR 20000


About the Training Provider:


Study9 provides online training on IT topics by experienced college faculties and industry trainers. The courses taught in Study9 are carefully chosen keeping the current job market in mind. These courses enable a person with necessary skills needed to get a job in the competitive IT industry.

What are the online training mode options available?


  • Online Self Paced Training (SPT) with Videos and Documents
  • Online Instructor Led Training (ILT)

Puppet/Chef Course Syllabus


Puppet Training



  • The fundamental component roles that make up Puppet Enterprise (and Puppet Open Source).
  • The core concepts for the Puppet DSL, including:
    • Modules and Classes
    • Classification
    • Resources
    • Relationships
    • Language Constructs
  • Separating logic from presentation by using Templates.
  • Modeling repeatable portions of your configuration by using Defined Resource Types.
  • Building a foundation for building more complex configurations by using Advanced Classes:
    • Parameterized Classes
    • Introduction to Inheritance
    • Introduction to Data Separation using Hiera
    • Revisiting Classification using parameterized classes & ADB
  • An introduction to using modules from the Puppet Forge and Supported Modules.
  • A brief introduction to the Roles and Profiles design pattern.
  • Creating own module using Puppet

Chef Training



  • Overview of Chef
  • Workstation Setup
  • Node Setup
  • Dissecting your first Chef run
  • Introducing the Node object
  • Chef Resources and Recipes
  • Attributes, Templates, and Cookbook Dependencies
  • Template Variables, Notifications, and Controlling Idempotency
  • Recipe Inclusion, Data Bags, and Search Roles
  • Environments
  • Using Community Cookbooks
  • Writing own cookbook

Puppet/Chef Course Duration


  • Regular classes – 3 weeks
  • Weekend Classes – 5 weeks
  • Customized Fast Track option is available as well.

About our Puppet/Chef Trainers


Our trainers for the Puppet/Chef courses are

  • Experienced IT professionals
  • Having hands on practical knowledge
  • With experience of training large batches in both offline and online mode

Placement Support


Study9 team will help the students with

  • Resume Preparation
  • Mock interviews
  • Job opportunity leads and suggestions

Related Training Courses


  • CfEngine Automation
  • Ansible Automation
  • DevOps through automated CI/CD

Next level


After completion of this course you can further advance your career by completing the next courses as suggested below:

  • Puppet Masters Advanced Course
  • Master Chef Advanced Course

Welcoming New Members

Welcome to DevOps Organization of India. You are welcome to take part in our discussions, receive professional paid support from our community members, engage with us in consultancy services and or just roam around our pages to gather as much as knowledge you can gain. The community is built of professionals from various organizations to help each other in the new skill sets coming up as the part of DevOps paradigm.