+ All Categories
Home > Documents > Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS...

Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS...

Date post: 27-Oct-2020
Category:
Upload: others
View: 15 times
Download: 0 times
Share this document with a friend
36
Automation for everyone Ansible technical introduction and overview
Transcript
Page 1: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Automation for everyoneAnsible technical introduction and overview

Page 2: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

CONFIDENTIAL

AGENDAMOBILE PORTFOLIO CENTER AGENDA - JUNE 17, 2019

2

8:30 AM | BREAKFAST AND REGISTRATION |

9:00 AM - 9:45 AM | AUTOMATE EVERYTHING | BRIAN PAYTON |Learn why industry analysts and the community alike have chosen Ansible as the leading IT automation tool. We’ll give a technical overview of Ansible and demo how you can automate your OS patching process using Ansible.

10:00 AM - 10:45 AM | RED HAT SMART MANAGEMENT | BRIAN DUMONT |Describe how Red Hat’s continued investment in the management platform continues to add value to a Smart Management subscription. Introduce each feature with a short demonstration.

11:00 AM - 11:45 PM | RHEL 8 | CHRIS WELLS |Red Hat Enterprise Linux 8 is the intelligent operating system that is the consistent foundation for the enterprise hybrid cloud and provides the tools needed to deliver these services and workloads faster with less effort - any application on any footprint at any time..

12:00 PM | LUNCH |

1:00 PM - 1:45 PM | OPENSHIFT 4 | BRIAN PAYTON |Take a look at what’s new with the latest version of OpenShift. We’ll explore the enhanced Day 2 Operations, the concept of immutable infrastructure, and the new Operator Hub.

2:00 PM - 2:45 PM | MIGRATING YOUR MW WORKLOADS TO CONTAINERS ON OCP | SCOTT SEIGHMAN |Walk through the process of migrating your middleware workloads and discuss the advantages/value of moving said workloads to containers.

Page 3: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

What is Ansible Automation?

Ansible Automation is the enterprise framework for automating across IT operations.

Ansible Engine runs Ansible Playbooks, the automation language that can perfectly describe an IT application infrastructure.

Ansible Tower allows you scale IT automation, manage complex deployments and speed productivity.

RED HAT ANSIBLE TOWEROperationalize your automation

RED HAT ANSIBLE ENGINESimple command line automation

CONTROL DELEGATION SCALE

SIMPLE POWERFUL AGENTLESS

FUELED BY AN INNOVATIVE OPEN SOURCE COMMUNITY

Page 4: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Why Ansible?

Simple Powerful Agentless

App deployment

Configuration management

Workflow orchestration

Network automation

Orchestrate the app lifecycle

Human readable automation

No special coding skills needed

Tasks executed in order

Usable by every team

Get productive quickly

Agentless architecture

Uses OpenSSH & WinRM

No agents to exploit or update

Get started immediately

More efficient & more secure

Page 5: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Ansible Automation works across teams

DEV QA/SECURITY I.T. OPERATIONSBUSINESS NETWORK

Page 6: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

World’s Most Popular Automation Platform

Page 7: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

What can I do using Ansible?Automate the deployment and management of your entire IT footprint.

Orchestration

Do this...

Firewalls

Configuration Management

Application Deployment Provisioning Continuous

DeliverySecurity and Compliance

On these...

Load Balancers Applications Containers Clouds

Servers Infrastructure Storage And more...Network Devices

Page 8: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Cloud Virt & Container Windows Network Devops Monitoring

Ansible automates technologies you useTime to automate is measured in minutes

AWSAzureDigital OceanGoogleOpenStackRackspace+more

DockerVMwareRHVOpenStackOpenShift+more

ACLsFilesPackagesIISRegeditsSharesServicesConfigsUsersDomains+more

AristaA10CumulusBigswitchCiscoCumulusDellF5JuniperPalo AltoOpenSwitch+more

JiraGitHubVagrantJenkinsBambooAtlassianSubversionSlackHipchat+more

DynatraceAirbrakeBigPandaDatadogLogicMonitorNagiosNew RelicPagerDutySensuStackDriverZabbix+more

StorageNetappRed Hat StorageInfinidat+more

Operating SystemsRhel And LinuxUnixWindows+more

Page 9: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

3 ROI on Ansible Tower

146% < MONTHSPayback on Ansible Tower

Financial summary:

SOURCE: "The Total Economic Impact™ Of Red Hat Ansible Tower, a June 2018 commissioned study conducted by Forrester Consulting on behalf of Red Hat."redhat.com/en/engage/total-economic-impact-ansible-tower-20180710

Reduction in recovery time following a security incident94%

84% Savings by deploying workloads to generic systems appliances using Ansible Tower

67% Reduction in man hours required for customer deliveries

Red Hat Ansible Towerby the numbers:

Page 10: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

The language of automation

Page 11: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

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 others

Orchestration plays well with others: ServiceNow, Infoblox, AWS, Terraform, Cisco ACI and more

Red Hat Ansible Engine

Page 12: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

---- name: install and start apache hosts: web become: yes vars:

http_port: 80

tasks: - name: httpd package is present

yum: name: httpd state: latest

- name: latest index.html file is present copy: src: files/index.html dest: /var/www/html/

- name: httpd is started service: name: httpd state: started

Page 13: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

INVENTORYHOSTS

NETWORK DEVICES

PLUGINS

CLI

MODULES

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

Page 14: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

INVENTORYHOSTS

NETWORK DEVICES

PLUGINS

CLI

MODULES

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

PLAYBOOKS ARE WRITTEN IN YAML Tasks are executed sequentially Invoke Ansible modules

Page 15: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

INVENTORYHOSTS

NETWORK DEVICES

PLUGINS

CLI

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

MODULES ARE “TOOLS IN THE TOOLKIT” Python, Powershell, or any language Extend Ansible simplicity to the entire stack

MODULES

CORE NETWORK COMMUNITY

Page 16: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

INVENTORYHOSTS

NETWORK DEVICES

CLI

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

PLUGINS ARE “GEARS IN THE ENGINE” Code that plugs into the core engine Adaptability for various uses & platforms

MODULES PLUGINS

Page 17: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

CMDB

USERS

HOSTS

NETWORK DEVICES

CLI

ANSIBLE PLAYBOOK

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

MODULES PLUGINS

INVENTORY

INVENTORY

[web] webserver1.example.com webserver2.example.com

[db] dbserver1.example.com

[switches] leaf01.internal.com leaf02.internal.com

[firewalls] checkpoint01.internal.com

[lb] f5-01.internal.com

Page 18: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

USERS

HOSTS

NETWORK DEVICES

CLI

ANSIBLE PLAYBOOK

MODULES PLUGINS

INVENTORY

PUBLIC / PRIVATECLOUD PUBLIC / PRIVATE

CLOUD

CLOUD Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure

CMDB

Page 19: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

USERS

HOSTS

NETWORK DEVICES

CLI

ANSIBLE PLAYBOOK

MODULES PLUGINS

INVENTORY

CMDB ServiceNow, Cobbler, BMC, Custom cmdb

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

CMDB

Page 20: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

ANSIBLE AUTOMATION ENGINE

USERS

CLI

ANSIBLE PLAYBOOK

MODULES PLUGINS

INVENTORY

PUBLIC / PRIVATECLOUD

PUBLIC / PRIVATECLOUD

CMDB

HOSTS

NETWORK DEVICES

AUTOMATE EVERYTHING Red Hat Enterprise Linux, Ubuntu, Debian, Cisco routers, Arista switches, Juniper routers, Windows hosts, Checkpoint firewalls and more

Page 21: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

GITHUBgithub.com/ansible/ansible-examples

LAMP + HAPROXY + NAGIOSgithub.com/ansible/ansible-examples/tree/master/lamp_haproxy

WINDOWSgithub.com/ansible/ansible-examples/tree/master/windows

SECURITY COMPLIANCEgithub.com/ansible/ansible-lockdown

NETWORK AUTOMATIONansible.com/linklightgithub.com/network-automation

Playbook examples:

Page 22: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Automation across the enterprise

Page 23: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Ansible Tower is a UI and RESTful API allowing you to scale IT automation, manage complex deployments and speed productivity.

• Role-based access control

• Deploy entire applications with push-button deployment access

• All automations are centrally logged

• Powerful workflows match your IT processes

What is Ansible Tower?

Page 24: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

RBAC

Allow restricting playbook access to authorized users. One team can use playbooks in check mode (read-only) while others have full administrative abilities.

Push button

An intuitive user interface experience makes it easy for novice users to execute playbooks you allow them access to.

RESTful API

With an API first mentality every feature and function of Tower can be API driven. Allow seamless integration with other tools like ServiceNow and Infoblox.

Workflows

Ansible Tower’s multi-playbook workflows chain any number of playbooks, regardless of whether they use different inventories, run as different users, run at once or utilize different credentials.

Enterprise integrations

Integrate with enterprise authentication like TACACS+, RADIUS, Azure AD. Setup token authentication with OAuth 2. Setup notifications with PagerDuty, Slack and Twilio.

Centralized loggingAll automation activity is securely logged. Who ran it, how they customized it, what it did, where it happened - all securely stored and viewable later, or exported through Ansible Tower’s API.

Red Hat Ansible Tower

Page 25: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

USE CASES

USERS

ANSIBLEENGINE PYTHON CODEBASE

OPEN SOURCE MODULE LIBRARY

PLUGINS

CLOUD

AWS,GOOGLE CLOUD,AZURE …

INFRASTRUCTURE

LINUX,WINDOWS,UNIX …

NETWORKS

ARISTA, CISCO, JUNIPER …

CONTAINERS

DOCKER, LXC …

SERVICES

DATABASES, LOGGING,SOURCE CONTROL MANAGEMENT…

TRANSPORT

SSH, WINRM, ETC.

AUTOMATEYOUR

ENTERPRISE

ADMINS

ANSIBLE CLI & CI SYSTEMS

ANSIBLE PLAYBOOKS

….

ANSIBLETOWER

SIMPLE USER INTERFACE TOWER API

ROLE-BASEDACCESS CONTROL

KNOWLEDGE& VISIBILITY

SCHEDULED &CENTRALIZED JOBS

CONFIGURATIONMANAGEMENT

APP DEPLOYMENT

CONTINUOUSDELIVERY

SECURITY &COMPLIANCE

ORCHESTRATIONPROVISIONING

Page 26: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

USE CASE:

Cloud automation

Page 27: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

CLOUD AUTOMATION

ansible.com/cloud

30+ Cloud Platforms

800+ Cloud

Modules

Page 28: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

---

- name: aws playbook

hosts: localhost

connection: local

tasks:

- name: create AWS VPC ansible-vpc

ec2_vpc_net:

name: "ansible-vpc"

cidr_block: "192.168.0.0/24"

tags:

demo: the demo vpc

register: create_vpc

PLAYBOOK EXAMPLE: AWS

Page 29: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

---

- name: azure playbook

hosts: localhost

connection: local

tasks:

- name: create virtual network

azure_rm_virtualnetwork:

resource_group: myResourceGroup

name: myVnet

address_prefixes: "10.0.0.0/16"

PLAYBOOK EXAMPLE: AZURE

Page 30: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

Demo

Page 31: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

GET STARTED JOIN THE COMMUNITY

WORKSHOPS & TRAINING SHARE YOUR STORY

NEXT STEPS

ansible.com/get-started

ansible.com/tower-trial

ansible.com/workshops

Red Hat Training

ansible.com/community

Follow us @Ansible

Friend us on Facebook

Page 32: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

EXTRA SLIDES

Page 33: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

---

- name: Install IIS and SSL Bindings

hosts: all

vars:

https_port: 443

tasks:

- name: Install IIS

win_feature:

name: Web-Server

state: present

- name: Create SSL Webbindings

win_iis_webbinding:

name: Demo

port: “{{ https_port }}”

state: present

Windows Management

Page 34: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

---

- name: Install IIS and SSL Bindings

hosts: all

vars:

https_port: 443

tasks:

- name: Install IIS

win_feature: name: Web-Server

state: present

- name: Create SSL Webbindings

win_iis_webbinding: name: Demo

port: “{{ https_port }}”

state: present

Windows Management

Page 35: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

vars: ntp_servers: - 10.11.160.238 - 10.5.27.10 tasks: - name: Set the switch name and domain name nxos_config: lines: - "hostname {{ inventory_hostname }}" - ip domain-name lab.eng.rdu.redhat.com provider: "{{ cli }}" - name: Set the NTP server nxos_ntp: server: "{{ item }}" prefer: enabled provider: "{{ cli }}" with_items: "{{ ntp_servers }}"

Network Management

Page 36: Automation for everyone - events.redhat.com · Red Hat Openstack, Red Hat Satellite, VMware, AWS EC2, Rackspace, Google Compute Engine, Azure CMDB . ANSIBLE AUTOMATION ENGINE USERS

vars: ntp_servers: - 10.11.160.238 - 10.5.27.10 tasks: - name: Set the switch name and domain name nxos_config: lines: - "hostname {{ inventory_hostname }}" - ip domain-name lab.eng.rdu.redhat.com provider: "{{ cli }}" - name: Set the NTP server nxos_ntp: server: "{{ item }}" prefer: enabled provider: "{{ cli }}" with_items: "{{ ntp_servers }}"

Network Management


Recommended