Workshop Automatizacion Red Hat Julio 23
Workshop Automatizacion Red Hat Julio 23
Automatización
Lucas Aiello
Engineer Sales
laiello@licenciasonline.com
WIFI
Red: LOL Guests
Pass: JuanaM1800
2
Agenda
1. ¿Qué es la automatización?
2. Ansible
3. Arquitectura
4. Casos de uso
5. Lab time
3
¿Qué es la
automatización?
4
¿Qué es la automatización?
¿Qué es la automatización?
Automatiza Automatiza
funciones organizaciones
Ciclo de vida típico de IT
Maintenance
App
System Admin Security Delivery Security
Manager Team Manager
Security Security
Baseline report deploy Validation
Provision Patch Configure
12
¿Por qué Ansible?
14
¿Por qué Ansible?
140+
Colecciones certificadas
Infrastructure Cloud Network Security Edge
55+
Partners tecnológicos
15
https://www.ansible.com/integrations
Arquitectura
16
Hub de automatización privado
Developer IDE
Custom
enterprise content
Automation Hub
console.redhat.com
Private
Ansible Galaxy Automation Hub
What is it?
▸ The main building block for Ansible ---
- name: Shutdown VM guest
▸ Simple YAML syntax to develop Ansible
hosts: localhost
Playbooks gather_facts: false
▸ Provides CLI tools to develop, test and run tasks:
- name: Turn off specified VM guest
playbooks
vmware.vmware_rest.vcenter_vm_guest_power:
▸ Pluggable architecture that allows state: shutdown
extensions through Content Collections vm: 1021343
vcenter_hostname: vcenter.demoredhat.com
vcenter_username: admin
vcenter_password: tedlasso
18
What is Red Hat Ansible Automation Platform?
Ansible playbooks
---
- name: Install and start apache
hosts: web
become: true
tasks:
- name: Ensure the httpd package is installed
v ansible.builtin.yum:
name: httpd
state: present
Running Playbooks
The most important colors of Ansible
44
What makes up an Ansible playbook?
= + +
Playbook
21
Ansible plays. What am I automating?
22
Ansible modules. The “tools in the toolkit”.
Language
▸ Usually created in Python, or Powershell for
Windows setups, but can be developed in
any language
23
Ansible plugins. The “extra bits”.
{{ some_variable | to_nice_json }}
{{ some_variable | to_nice_yaml }}
24
Ansible Roles. Reusable automation actions.
25
Content Collections.
Simplified, consistent content delivery.
26
Automation hub. Trusted automation content.
console.redhat.com
What is it?
▸ Hosted source of trusted Red Hat and
Certified Partner Content Collections
▸ Integrated documentation and examples
▸ Configurable as primary content collection
source for your
automation environment
▸ Access to hosted automation hub and
content Included in subscription
27
Ansible VS Code extension.
Simplifying content creation.
What is it?
▸ Syntax highlighting of keywords such
as module names
▸ Live validation of your code while
you type
▸ Integration with ansible-lint*
▸ Autocompletion on play, block or
task contents etc
▸ Documentation references as you code
28
29
Red Hat Ansible Automation Platform technical deck | Create
What is it?
It is a command line utility and text-based user $ ansible-navigator run playbook.yml -i inventory.ini
interface (TUI) for running, testing and
developing Ansible automation content
▸ Review EEs
▸ Develop collections
▸ Develop playbooks
▸ Troubleshoot problems
30
Red Hat Ansible Automation Platform technical deck | Create
What is it?
Command-line tool for linting playbooks, roles $ ansible-lint playbook.yml
and collections aimed towards any Ansible
users.
31
Automation controller. Define, operate, and delegate.
What is it?
Automation controller is the Ansible Automation
Platform control plane which enables users to define,
operate, and delegate automation across their
enterprise
Automation controller
32
Red Hat Ansible Automation Platform technical deck | Manage
Automation controller
Repository
Credentials
Playbooks Data center
Content Execution
Collections environments
Private automation hub
Execution Content
environments Collections Inventories
Edge
33
Red Hat Ansible Automation Platform technical deck | Manage
34
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
Logical collection of your playbooks:
35
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
Collection of endpoints against which jobs
may be launched
36
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
▸ Securely manage credentials needed
for automation resources
▸ Multiple credential types supported
▸ Integrate external secret management systems
▸ Create custom credential types and plugins
▸ Use RBAC to govern access
▸ Actual credential never exposed
37
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
▸ Define and standardize running automation
▸ Reusable and shareable
▸ Leverage agile practices, such as GitOps and event-driven
automation
38
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
▸ Workflows enable the creation of powerful
holistic automation, chaining together multiple
pieces of automation and events
▸ Simple logic inside these workflows can trigger
automation depending on the success or failure
of previous steps
▸ Add approvals to your workflows to
enhance governance
▸ Integrate other systems, such as ITSM to fit with
your existing controls and processes
39
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
▸ Controller launching an instance of
defined automation
▸ Relaunch automation jobs
▸ Use Job Details to view job outputs
▸ Troubleshoot automation execution using
filtered views
40
Red Hat Ansible Automation Platform technical deck | Manage
What is it?
▸ The API provides programmatic access
to the automation via a defined interface
▸ Underneath it is still powered by the same bits
and pieces which are at the core: workflows,
inventories, etc
▸ It offers simple integration into
other tools like ITSM, SOAR, etc
41
Red Hat Ansible Automation Platform technical deck | Scale
What is it?
▸ Adds human interaction to the automation for
administration and governance
▸ Available at the operational level on the
Automation controller UI
42
Casos de uso
43
Red Hat Ansible Automation Platform technical deck | Use cases
Investigation enrichment
Investigation Threat Incident Enabling programmatic access to log configurations such
enrichment hunting response
as destination, verbosity, etc
Response and remediation
Threat hunting
Automating alerts, correlation searches, and
Automated security operations
signature manipulation
EPP SIEM IDPS PAM Firewalls SOAR
Incident response
Creating new security policies to whitelist,
blacklist, or quarantine a machine
Physical Virtual Cloud Edge
44
Red Hat Ansible Automation Platform technical deck | Use cases
Configuration accuracy
Configuration Operational state Compliance and ▸ Config backup and restore
accuracy management traceability
▸ Scoped configuration management
Network orchestration
Operational state management
▸ Dynamic documentation
▸ Automated NetOps
Automated network operations
45
Red Hat Ansible Automation Platform technical deck | Use cases
Orchestrate
▸ Deployment and retirement
Orchestrate Operationalize Govern
▸ Infrastructure coordination
Automated troubleshooting ▸ Cloud migration
Operationalize
▸ Infrastructure visibility
Automated cloud operations
▸ Cloud operations
▸ Automated troubleshooting
Govern
▸ Business continuity
Public Cloud Cloud native Private Cloud
▸ Cost management
▸ compliance
46
Red Hat Ansible Automation Platform technical deck | Use cases
47
Red Hat Ansible Automation Platform technical deck | Use cases
Day 2 operations
▸ Manage and install Windows updates across reboots
▸ Create and manage local users
▸ Create and manage domain controller/member server state
▸ Manage certificates
Cloud Network Security Infrastructure Edge ▸ Fetch files from remote hosts
▸ Push and execute Powershell scripts
48 ▸ Leverage Powershell DSC resources
Red Hat Ansible Automation Platform technical deck | Use cases
Provisioning
▸ Work seamlessly with bare metal, virtualized and cloud infrastructure
Configuration Application ▸ Easily patch, upgrade and maintain Linux servers
Provisioning
management Deployment
▸ Automation can handle reboots and ad-hoc changes
Configuration Management
▸ Built-in support for Linux file and user management
▸ Full integration of Jinja2 templating library
▸ Support for Idempotence across numerous Linux modules
Application Deployment
▸ Full support of dnf, yum and apt packaging tools
▸ Start, stop, and manage Linux services
49
Red Hat Ansible Automation Platform technical deck | Use cases
50
Red Hat Ansible Automation Platform technical deck | Use cases
51
Red Hat Ansible Automation Platform technical deck | Use cases
52
Write your first playbook
https://www.redhat.com/en/interactive-labs/write-your-first-playbook
Lab Time
Network automation basics: First playbook
https://www.redhat.com/en/interactive-labs/network-automation-basics-first-playbook
Lab Time
Resolve issues with Insights advisor functionality
https://www.redhat.com/en/interactive-labs/resolve-issues-red-hat-insights-advisor-
functionality
Lab Time
Remediating vulnerabilities with Red Hat Insights
https://www.redhat.com/en/interactive-labs/remediating-vulnerabilities-with-red-hat-insights
Lab Time
Muchas Gracias!
Lucas Aiello
Engineer Sales
laiello@licenciasonline.com