23

weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK
Page 2: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

王偉任weithenn.org

Ansible AWX圖形化管理 Ansible 環境的利器

Page 3: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Agenda

3

▪ Infrastructure as Code (IaC)

▪ Why Ansible

▪ Ansible Engine vs Tower vs AWX

▪ Ansible AWX Features

▪ Use Case Demo

Page 4: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Infrastructure as Code (IaC)

Page 5: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Bimodal IT – Mode 1 / Mode 2

5

▪ Mode 1

– Traditional Infrastructure

▪ Reliability / Stability

– Physical Server / Storage / Network

▪ Mode 2

– Infrastructure Agility

– Software Defined (SDC, SDS, SDN)

– VM / Container / Microservice

▪ Agility / DevOps

Image From: Gartner - Data Center Modernization and Consolidation Key Initiative Overview

Page 6: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK
Page 7: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

7

Page 8: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

CNCF – Cloud Native Landscape

8

Reference: CNCF Cloud Native Interactive Landscape

Page 9: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Infrastructure as Code (IaC)

9

Page 10: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Why Ansible

Page 11: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible – Language of automation

11

CROSS PLATFORM

Agentless support for all major OS

variants, physical, virtual, cloud and

network devices.

HUMAN READABLE

Perfectly describe and document every

aspect of your application environment.

PERFECT DESCRIPTION OF APPLICATIONEvery change can be made by Playbooks,

ensuring everyone is on the same page.

VERSION CONTROLLED

Playbooks are plain-text. Treat them like

code in your existing version control.

DYNAMIC INVENTORIES

Capture all the servers 100% of the time,

regardless of infrastructure, location, etc.

ORCHESTRATION PLAYS WELL WITH OTHERSOrchestration plays well with others: ServiceNow, Infoblox, AWS, Terraform, Cisco ACI and more

Page 12: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible Automates Technologies You Use

12

CLOUD VIRT & CONTAINER WINDOWS NETWORK DEVOPS MONITORING

AWS

Azure

Digital Ocean

Google

OpenStack

Rackspace

+more

Docker

VMware

RHV

OpenStack

OpenShift

+more

ACLs

Files

Packages

IIS

Regedits

Shares

Services

Configs

Users

Domains

+more

Arista

A10

Cumulus

Bigswitch

Cisco

Cumulus

Dell

F5

Juniper

Palo Alto

OpenSwitch

+more

Jira

GitHub

Vagrant

Jenkins

Bamboo

Atlassian

Subversion

Slack

Hipchat

+more

Dynatrace

Airbrake

BigPanda

Datadog

LogicMonitor

Nagios

New Relic

PagerDuty

Sensu

StackDriver

Zabbix

+more

STORAGE

NetApp

Red Hat Storage

Infinidat

+more

OPERATING

SYSTEMS

RHEL and Linux

UNIX

Windows

+more

Page 13: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible Architecture

13

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

INVENTORYHOSTS

NETWORK DEVICES

PLUGINS

CLI

MODULES

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

Reference: RedHat people bhinson – Ansible automation technical deck

Page 14: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible Engine vs Tower vs AWX

Page 15: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible Engine vs Tower vs AWX

15

Ansible Engine Ansible Tower Ansible AWX

• CLI Only.• Not centralized management.• Integration with Red Hat

Enterprise Linux.• Support for Ansible core

modules per product life cycle.• Support for the Ansible

execution engine.

• A GUI Dashboard.• Red Hat licensed and 24x7

supported.• High Availability supported.• Role-based access control• Job scheduling• Graphical inventory

management• Multi-playbook workflow• RESTful API• External logging integrations• Real-time job status updates

• The AWX Project is the fast-moving upstream project from which Red Hat Ansible Tower is derived.

• Opensource of free to use.• No node limitations.• Frequent updates from the

community.• Community support.

Page 16: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Why Ansible AWX

16

Ansible AWX is a opensource of Ansible Tower, so it’s free to use, GUI based, and RESTful API allowing you to scale IT automation, manage complex deployments and speed productivity.

✓ RBAC (Role-Based Access Control)

✓ Push Button – Easy to execute playbook

✓ RESTful API

✓ Workflow

✓ Enterprise Integrations

✓ Centralized Logging

✓ Ansible AWX is FREE

Image From: RedHat people bhinson – Ansible automation technical deck

Page 17: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible AWX Architecture

17

Image From: RedHat people bhinson – Ansible automation technical deck

Page 18: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Ansible AWX Features

Page 19: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Dashboard

19

Page 20: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

RBAC (Role-Based Access Control)

20

Reference: 27. Security — Ansible Tower User Guide v3.6.3

Page 21: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Easy to Execute Playbook

21

Page 22: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Automation Workflow

22

Image From: RedHat people bhinson – Ansible automation technical deck

Page 23: weithenn - s.itho.meRHEL and Linux UNIX Windows +more. Ansible Architecture 13 ANSIBLE AUTOMATION ENGINE CMDB USERS INVENTORY HOSTS NETWORK DEVICES PLUGINS CLI MODULES ANSIBLE PLAYBOOK

Thank you