Introduction to Ansible

Slides:



Advertisements
Similar presentations
SSH Operation and Techniques - © William Stearns 1 SSH Operation and Techniques The Swiss Army Knife of encryption tools…
Advertisements

1 Dynamic DNS. 2 Module - Dynamic DNS ♦ Overview The domain names and IP addresses of hosts and the devices may change for many reasons. This module focuses.
CSS Central: Central Management Utility Screen View Samples Next.
® IBM Software Group © 2010 IBM Corporation What’s New in Profiling & Code Coverage RAD V8 April 21, 2011 Kathy Chan
Software Frame Simulator (SFS) Technion CS Computer Communications Lab (236340) in cooperation with ECI telecom Uri Ferri & Ynon Cohen January 2007.
© 2010 VMware Inc. All rights reserved VMware ESX and ESXi Module 3.
Project Implementation for COSC 5050 Distributed Database Applications Lab1.
Reproducible Environment for Scientific Applications (Lab session) Tak-Lon (Stephen) Wu.
Firewalls, Perimeter Protection, and VPNs - SANS © SSH Operation The Swiss Army Knife of encryption tools…
One to One instructions Installing and configuring samba on Ubuntu Linux to enable Linux to share files and documents with Windows XP.
Building service testbeds on FIRE D5.2.5 Virtual Cluster on Federated Cloud Demonstration Kit August 2012 Version 1.0 Copyright © 2012 CESGA. All rights.
STIG Compliance and Remediation with Ansible April 2015.
Lab How to Use WANem Last Update Copyright 2011 Kenneth M. Chipps Ph.D. 1.
® IBM Software Group © 2009 IBM Corporation Rational Publishing Engine RQM Multi Level Report Tutorial David Rennie, IBM Rational Services A/NZ
Sponsored by the National Science Foundation Configuration Management For Experimenters: Ansible Hands-On Sarah Edwards, GPO.
© 2012 LogiGear Corporation. All Rights Reserved Robot framework.
Home Media Network Hard Drive Training for Update to 2.0 By Erik Collett Revised for Firmware Update.
Yannick Patois – CVS and Autobuild tools at CCIN2P3 – hepix - October, n° 1 CVS setup at CC-IN2P3 and Datagrid edg- build tools CVS management,
| nectar.org.au NECTAR TRAINING Module 5 The Research Cloud Lifecycle.
Client – Server Application Can you create a client server application: The server will be running as a service: does not have a GUI The server will run.
WHAT IS FTP? FTP (File Transfer Protocol) is a known effective and organized way of transferring files over the internet directly from one computer to.
Efficient DBA Part 1 Scripting Your Logins “Efficiency is intelligent laziness.” ~ David Dunham TCOUG.
SSH Operation The Swiss Army Knife of encryption tools…
By: Anuj Sharma. Topics covered:  GIT Introduction  GIT Benefits over different tools  GIT workflow  GIT server creation  How to use GIT for first.
HotEx Radius Manager Installation. hotEx RADIUS Manager Network Diagram.
REMOTE LOGIN. TEAM MEMBERS AMULYA GURURAJ 1MS07IS006 AMULYA GURURAJ 1MS07IS006 BHARGAVI C.S 1MS07IS013 BHARGAVI C.S 1MS07IS013 MEGHANA N. 1MS07IS050 MEGHANA.
Kickstart Installation
Ansible with vCloud Air Workshop
Networking in Linux. ♦ Introduction A computer network is defined as a number of systems that are connected to each other and exchange information across.
CS Capstone OS Tools for OpenBSD Overview Presentation Team Fugu.
1 / Platform Development Process In-house limited Automatically Measuring Code Coverage in Distributed Environment Li Fei Peng Platform QA Part, NSC 2009-
| nectar.org.au NECTAR TRAINING Module 5 The Research Cloud Lifecycle.
Sponsored by the National Science Foundation Today’s Exercise.
Installing Applications in FreeBSD lctseng. Computer Center, CS, NCTU 2 Before we start  Permission issue root: the super user Like administrator in.
Selenium server By, Kartikeya Rastogi Mayur Sapre Mosheca. R
IBM Express Runtime Quick Start Workshop © 2007 IBM Corporation Deploying a Solution.
Automating Legacy Network Devices
Ansible and Ansible Tower 1 A simple IT automation platform November 2015 Leandro Fernandez and Blaž Zupanc.
Cloud Installation & Configuration Management. Outline  Definitions  Tools, “Comparison”  References.
Planning Server Deployments Chapter 1. Server Deployment When planning a server deployment for a large enterprise network, the operating system edition.
Sponsored by the National Science Foundation Systematic Experimentation Sarah Edwards GENI Project Office.
Information Initiative Center, Hokkaido University North 11, West 5, Sapporo , Japan Tel, Fax: General.
Linux Basics Part 2. VIM Editor vi improved Installed on most Linux machines Can be a bit confusing at first... o Cheat sheets FTW Other popular editors:
1 Free Electrons. Kernel, drivers and embedded Linux development, consulting, training and support. http//free-electrons.com SSH Thomas Petazzoni Free.
Introduction to Ansible
VMware ESX and ESXi Module 3.
ONAP on Vagrant for ONAPers
CS1010: Intro Workshop.
@ Bucharest DevOps Hacker Meetup
Essentials of UrbanCode Deploy v6.1 QQ147
Site Administration Tools: Ansible
Modernize Your Operations
NTP, Syslog & Secure Shell
Introduction to Ansible
IT Atoumation / Conf. Mgmt...
Deploying and Configuring SSIS Packages
Capistrano David Grayson Las Vegas Ruby Meetup
Drupal VM and Docker4Drupal For Drupal Development Platform
Acutelearn Best Devops Online Training in Hyderabad Classroom Training Instructor led trainings at Acutelearn premises Corporate Training Custom tailored.
Drupal VM and Docker4Drupal as Consistent Drupal Development Platform
Intro to Config Management Using Salt Open Source
Ansible and Zabbix Rushikesh Prabhune (Software Technical Consultant)
INSTALLING AND SETTING UP APACHE2 IN A LINUX ENVIRONMENT
Scaling Experiments.
Introduction to Ansible
Presented By - Avinash Pawar
GBIF CESP Workshop, Madrid 2018 Dave Martin
Cloud Computing.
Configuration Management at its peak with
Rational Publishing Engine RQM Multi Level Report Tutorial
Presentation transcript:

Introduction to Ansible Presented by Frank Kuse

Introduction to Ansible Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. It support configuration management with examples as below. Configuration of servers Application deployment Continuous testing of already install application Provisioning Orchestration Automation of tasks

Why Automation? Tasks in code Collaboration Eliminate errors Write once Laziness Etc….

Why Ansible It is a free open source application Agent-less – No need for agent installation and management Phython/yaml based Highly flexible and configuration management of systems. Large number of ready to use modules for system management Custom modules can be added if needed Configuration roll-back in case of error Simple and human readable Self documenting

Ansible Architecture

Installation of Ansible Install packages below on the Server Machine sudo apt-get install python-yaml python-jinja2 python-paramiko python-crypto python-keyczar ansible Install packages below on the client Machines sudo apt-get install  python-crypto python-keyczar

Create the RSA Key Pair The first step is to create the key pair on the Server machine ssh-keygen –t rsa Once you have entered the Gen Key command, you will get a few more questions: Enter file in which to save the key (/home/test/.ssh/id_rsa): Enter no password for the next prompt Copy the Public Key ssh-copy-id test@192.168.85.135 Repeat the same process for other machines you wish to login automatically with. Ensure the test username has sudo access to the remote clients

Configuration of ansible Do the following on the Server machine Create the list of client machines you wish to access via this server vi /etc/ansible/hosts ( And enter the following lines and save file) [Servers] 192.168.85.135 192.168.85.136 Run the ping command below to see if indeed you are reaching both client nodes ansible -m ping all

Examples of ansible commands The output show ping result success as shown below

Examples of ansible commands (Cnt) How to run commands to fetch hard drives utilization ansible -m command -a 'df -h' Servers How to run commands to fetch system uptime ansible -m command -a ‘uptime' Servers

Examples of ansible commands ( Cnt) The full configuration environment inventory of a particular client machine can be obtain using the command below. ansible -m setup 192.168.85.135 ( output as shown below)

Creating an ansible-playbook template Create a template to enable the installation of an NTP service with content as shown below and file saved as ntp.yml

Understanding ansible playbook configurations In order to use ansible with SSH passwords you will need to install the program below sudo apt-get install sshpass Ansible-playbook command can be executed to run the ntp.yml file as below ansible-playbook -k -K ntp.yml The –k –K switches allow you to be able to use your ssh key and passwordless sudo. Every playbook configuration begins with triple dash ( ----) The hosts, tasks, name, action are various instructions commands to help automate your ntp installation process.

Understanding ansible playbook configurations (cnt) The output of the ansible-playbook command as below

Ansible Documentations You can find more explanation in the Ansible Docs. Ad-hoc commands Inventories Variables Modules Playbook Roles Similar tools that does the same function as Ansible are as below. Puppet Chef Salt