it automation with ansible-tower : introduction to ansible & ansible tower

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

Upload: mariadb

Post on 15-Apr-2017

779 views

Category:

Software


9 download

TRANSCRIPT

Page 1: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Introduction Ansible & Ansible Tower

Walter Brunelli Solution Architect Infrastructure

MariaDB Roadshow 24.May 2016 Basel CH

Page 2: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Agenda

•  What is Ansible ?

•  Ansible Core

•  Ansible Tower

•  Demo

Page 3: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

WHYANSIBLEDWASCREATED?

•  Open Source Project started in 2012 by Michael De Haan (cobbler creator)

•  Because existing Config Management projects were too complicated

•  Target : Eliminate complexity to manage IT environments

Page 4: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

WHATISANSIBLE?

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

Nr 1 OpenSource project for Automation

Page 5: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Principles of Ansible

Page 6: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

SUPPORTEDCLIENTPLATFORMS

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

Various Windows OS

Unix •  Solaris/AIX/HP-UX

Network Devices ans Load Balancers •  Cisco/Juniper/Dell/F5/Arista/A10/HP/PaloAlto

Databases •  MariaDB/Oracle/Postgres

Page 7: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

WHATISANSIBLE?

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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

WHYISAUTOMATIONSOIMPORTANT?

•  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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

ANSIBLEISIDEMPOTENT

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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

ANSIBLEISIDEMPOTENT

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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Ansible Core

Page 12: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

WHATISANSIBLECORE?

•  Community version of Ansible

•  No support

•  Important Features (Auditing, Job Scheduling, Role Based Access Control) missing

•  Not ideal for Production Environment

•  Not available in RedHat repos, Only external open-source, Eg. EPEL Fedora repos

Page 13: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Architecture

Page 14: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

THEINVENTORYFILE

Page 15: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

ExecuConExamples

Page 16: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Playbook

Page 17: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Ansible Tower

Page 18: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

KEYADVANTAGEOFANSIBLETOWER

•  Web-based UI

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

•  Compliance: Reporting + Auditing

•  Every job run is logged and can be traced.

•  Role Based Access Control

•  Separation of access rights.

•  Delegation of tasks, Eg. Recurring jobs to Operating

•  REST API

•  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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

MOREFEATURESOFANSIBLETOWER

•  Job Scheduling

•  Integrates with LDAP, AD and IDM

•  Multi-Organization

Availability

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

•  Current version is 2.4.4

Page 20: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower
Page 21: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

ANSIBLETOWERUserInterface

Page 22: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Ansible Tower Use-Cases

Almost very repeatable and programmable Process :

•  Automated Application and Service Deployment

•  Automated Add/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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Ansible Tower Use-Case Example

Page 24: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

TOWEREdiCons

Page 25: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

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: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

DEMO Ansible Tower

Page 27: IT Automation with Ansible-Tower : Introduction to Ansible & Ansible Tower

Thank you !

Walter Brunelli Solution Architect Infrastructure

March 2016