Professional Documents
Culture Documents
ABU - AIA - 301 - Ansible Infrastructure Automation - Technical Enablement
ABU - AIA - 301 - Ansible Infrastructure Automation - Technical Enablement
March 2022
3
Datacenter automation and management benefits
Close any admin expertise gaps and Ensure configuration and mitigate risk by
overcome lack of resources automating system setup
Reduce time spent analyzing and Spend less time on persistent security
validating OS security patches settings with security at scale
4
Infrastructure
Automation
Overview
5
What is Ansible infrastructure automation?
CLOUD SECURITY
Certified Collections
Datacenter Use
Cases
9
Infrastructure use cases
Operating System Provisioning Day 1: SSH Server Configuration SAP Day 2 Automation
11
Red Hat Ansible Infrastructure Automation
13
Red Hat Ansible Infrastructure Automation
15
Customise your deployment with role variables
---
- name: configure ms sql server
hosts: rhel_hosts
gather_facts: false
roles:
- role: microsoft.sql.server
…
mssql_accept_microsoft_odbc_driver_17_for_sql_server_eula: true
mssql_accept_microsoft_cli_utilities_for_sql_server_eula: true
mssql_accept_microsoft_sql_server_standard_eula: true
16
mssql_edition: Evaluation
Red Hat Ansible Infrastructure Automation
---
- name: prepare and deploy sap hana
hosts: rhel_sap
gather_facts: false
vars:
sap_preconfigure_assert: yes
sap_preconfigure_assert_ignore_errors: yes
sap_hana_preconfigure_assert: yes
sap_hana_preconfigure_assert_ignore_errors: yes
roles:
- role: sap.rhel.preconfigure
- role: sap.rhel.hana_preconfigure
roles:
Deploying with SAP Collections
- redhat.rhel_system_roles.timesync roles:
- spa.rhel.preconfigure - sap.rhel.hana_preconfigure
Red Hat
Enterprise Linux
Packages
SAP S/4HANA SAP NetWeaver
sap.rhel
SAP S/4HANA
SAP HANA
SAP NetWeaver
SAP Installer +
Product Packages
roles:
19
- redhat.rhel_system_roles.storage
Configuration
Management
20
Red Hat Ansible Infrastructure Automation
21
SSH configuration flexibility with Surveys
---
- name: configure ssh configuration
hosts: all
gather_facts: false
roles:
- role: redhat.rhel_system_roles.ssh
22
Red Hat Ansible Infrastructure Automation
24
Schedule kernel setting compliance checks
25
Day 2 Operations
26
Red Hat Ansible Infrastructure Automation
Why is it important?
● SAP Platform Lifecycle Management
● Provides maintenance task automation
● Platform updates
27
SAP Day 2 Operations
Modules
hana_backup Backup SAP HANA Database
SAP S/4HANA
hana_restore Restore SAP HANA Database backup
SAP HANA
hana_host_allocation Relocate SAP HANA systems
31
Sample playbook to backup an SAP HANA database
---
tasks:
- name: Create a full HANA backup for SYSTEMDB
sap.day2ops.hana_backup:
sid: RHE
hana_db_system_password: "{{ hana_db_system_password }}"
instance_number: "00"
prefix: MONDAY
db_name: SYSTEMDB
become: yes
become_user: rheadm
32
Red Hat Ansible Infrastructure Automation
Infrastructure Compliance
Why is it important?
● Ensure configuration and services are in desired states
Selinux Enabled
Firewalld Enabled
● Scheduled system checks reduce preventative maintenance
Apache Enabled
● Enables operations teams to focus on system improvements
IIS Enabled
Antivirus Running
Domain Enabled Why Ansible Automation Platform?
● Scheduled automation tasks can be configured
● Declarative configuration management with multiple methods of
notification
● Workflows allow for interaction with ITSM for logging support tickets
33
Managing datacenter configuration drift
…
collection:
- servicenow.itsm
tasks:
- name: Create incident
servicenow.itsm.incident:
state: new
caller: "{{ lookup('env', 'SN_USERNAME') }}"
short_description: “System not compliant” ● A non-compliant system incident can be
description: "Whoops! Houston we have a problem " logged automatically in an ITSM like
impact: low
ServiceNow using the servicenow.itsm
urgency: low
register: new_incident certified collection
35
What does Datacenter automation look like ?
Automation Mesh
Satellite
Hosted Services for
Datacenter Automation
37
Red Hat Insights
1,000+ 115,000+
Insights draws knowledge
1 million+ Red Hat
from data sources support cases support
base and
solution
such as… personnel
articles
Top Insights reports for datacenter automation
▶ Templates explorer
Where to go next
Learn more
▸ Workshops
▸ Documents
▸ YouTube
▸ Twitter
Get started
▸ Evals
▸ cloud.redhat.com
Get serious
40
Learning resources
Continue your automation journey with these infrastructure automation training materials
43