introduction ansible & ansible tower - … · what is ansible ? aradical simple itautomation...

27
Introduction Ansible & Ansible Tower Walter Brunelli Solution Architect Infrastructure MariaDB Roadshow 24.May 2016 Basel CH

Upload: vodang

Post on 19-Aug-2018

283 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Introduction

Ansible &

Ansible Tower

Walter Brunelli

Solution Architect Infrastructure

MariaDB Roadshow 24.May 2016 Basel CH

Page 2: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Agenda

• What is Ansible?

• Ansible Core

• Ansible Tower

• Demo

Page 3: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

WHY ANSIBLED WAS CREATED ?

• Open Source Project started in 2012 by

Michael De Haan (cobblercreator)

• Because existing ConfigManagement

projects were toocomplicated

• Target : Eliminate complexityto

manage ITenvironments

Page 4: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

WHAT IS ANSIBLE ?

A radical simple IT AUTOMATION engine for repeating jobs!

• Configuration-, Orchestration andDeployment-

Management Framework

How ?

• Agentless and with Playbooks

For whom?

• Operators, Administrators, Developers

Products

• Ansible Core + Ansible Tower

Nr 1 OpenSource project forAutomation

Page 5: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Principles of Ansible

Page 6: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

SUPPORTED CLIENT PLATFORMS

Linux

• RedHat/SuSe/Debian/Ubuntu/BSD/MacOSX

Various WindowsOS

Unix

• Solaris/AIX/HP-UX

Network Devices ans Load Balancers

• Cisco/Juniper/Dell/F5/Arista/A10/HP/PaloAlto

Databases

• MariaDB/Oracle/Postgres

Page 7: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

WHAT IS ANSIBLE ?

A radical simple IT AUTOMATION engine for repeating jobs!

• Configuration-, Orchestration and Deployment-

Management Framework

How ?

• Agentless and with Playbooks

For whom?

• Operators, Administrators, Developers

Products

• Ansible Core + Ansible Tower

Page 8: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

WHY IS AUTOMATION SO IMPORTANT?

• Stability

Jobs are always executed the exactly same way

• Time saving

By delegating jobs to operations

• Compliance

Stick to defined company and/or ITIL processes

Auditing

Page 9: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

ANSIBLE IS IDEMPOTENT

IDEMPOTENCE

Is the property of an operations in

mathematics and computer science that

can be applied multiple times without

changing the result beyond the initial

application.

Page 10: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

ANSIBLE IS IDEMPOTENT

IDEMPOTENCE

Is the property of an operations in

mathematics and computer science that

can be applied multiple times without

changing the result beyond the initial

application.

Page 11: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Ansible Core

Page 12: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

WHAT IS ANSIBLE CORE ?

• Community version ofAnsible

• No support

• Important Features (Auditing, Job

Scheduling, Role Based AccessControl)

missing

• Not ideal for Production Environment

• Not available in RedHat repos, Only external

open-source, Eg. EPEL Fedora repos

Page 13: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Architecture

Page 14: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

THE INVENTORY FILE

Page 15: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Execution Examples

Page 16: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Playbook

Page 17: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Ansible Tower

Page 18: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

KEY ADVANTAGE OF ANSIBLE TOWER

• Web-based UI

• Cloud Integration (Managing Amazon, Rackspace, MS Azure)

• Compliance: Reporting +Auditing

Every job run is logged and can be traced.

• Role Based AccessControl

Separation ofaccess rights.

Delegation of tasks, Eg. Recurring jobs to Operating

• RESTAPI

• All Functionalities are accessible over the API

• Monitoring

• Send out Alarm (Email etc.) if a job fails or if a config is found to be wrong

Page 19: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

MORE FEATURES OF ANSIBLE TOWER

• Job Scheduling

• Integrates with LDAP, AD and IDM

• Multi-Organization

Availability

• Available in rhel-7-server-extras-rpms Repository

• Current version is2.4.4

Page 20: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management
Page 21: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

ANSIBLE TOWER User Interface

Page 22: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Ansible Tower Use-Cases

Almost very repeatable and programmable Process :

• AutomatedApplication and Service Deployment

• AutomatedAdd/Removal of customers/users in your IT

environment,

• Automated patching of servers

• Rolling updates of your IT environemnt

• Run jobs on a weekly/monthly/yearly basis

Page 23: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Ansible Tower Use-CaseExample

Page 24: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

TOWER Editions

Page 25: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Good Links to start with Ansible

•Documentation

docs.ansible.com

•Get started

docs.ansible.com/intro_getting_started.html

•Playbooks :

galaxy.ansible.com

github.com/ ansible

Page 26: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

DEMO

AnsibleTower

Page 27: Introduction Ansible & Ansible Tower - … · WHAT IS ANSIBLE ? Aradical simple ITAUTOMATION engine for repeating jobs! • Configuration-, Orchestration andDeployment-Management

Thank you !

Walter Brunelli

Solution Architect Infrastructure

March 2016