IT Infrastructure
Automation with Ansible By: Dio Pratama
About Me
https://www.linkedin.com/in/dio-pratama/
IT Infrastructure by the day especially in enterprise networking, sysadmin and data center.
Passionate in programming and automation, business driven and lifelong learner. I believe
that the future of work is all about automation. By leveraging automation, organizations
will move faster and people can contribute more ideas, innovations and deliver more
valuable and excellent masterpiece.
Dio Pratama
Infrastructure as Code : Manage IT Devices Programmatically
Because of hardware is less flexible, it's time for traditional IT Infrastructure to
transform their obsolate operating model to Infrastructure as a Code
Trouble Ticket Trend 2018
400
198
143
121
46
0
50
100
150
200
250
300
350
400
450
Connection
Failure/ Issue
Telephone
Failure
Application
Error/ Issue
Connection
Failure
Low Signal
(WiFi)
Total
New Installation
1%
No Category
4% Plug Unplug
3%
Reconfigure
36%
Reconnect
0%
Recreate
1%Re-enable
2%
Reinstall
1%
Rejoin
0%
Replacement
4%
Reset
2%
Restart
26%
SR
2%
Termination
1%
Unclear
9%
Update
1%
Upgrade
1%
Vendor
8%
62% Job is Repetitive Task It can be automate
Data Source : One of Indonesian Pharmaceutical Company
Thing that we can automate
Deployment/Automation Tools
VS
Which is better ?
Deployment Automation Tools
Agent
Agent
Agent
Agent Less
Not Easy
Not Easy
Easy
Easy
Ansible Architecture
Host inventory file determines the target
machines where these plays will be executed
Configuration file can be customized to reflect
the settings in your environment
Playbooks consist of one or more tasks that are
expressed either with core modules that
come with Ansible or custom modules that you
can write for specific situations
Modules (also referred to as “task plugins” or
“library plugins”) are discrete units of code that
can be used from the command line or in a
playbook task.
Ansible Types
• Free - Open Source
• CLI
• Licensed - 10k USD / Per 100 Nodes
• GUI
• Many features
• Free - Open Source
• GUI
• Same features as Tower
Ansible AWX
AWX & Tower Comparison
AWX Features
AWX Features
AWX Features
AWX Features
AWX Features
REST API
IT Infra Automation Architecture
- Create Instances
- Server Provisioning
- Push OS/Image
- Changing Configuration
- Backup & Restore Configuration
- Deploy Application
- Etc
Everything that we can do manually by
SSH and Powershell (windows) console,
It can be done automatically by Ansible
Tested For Those Kind of Devices
Automate Web Server Deployment (Windows IIS)
Automate NAT Configuration (MX-Juniper)
Automate VM Deployment & Management (vmware)
RESTful API
- Create new server
- Deploy server from
template
- Upgrade vm resources
- etc
Ansible vmware Modules
IT Infrastructure Self Healing
Example Solarwind –Telegram API ConnectionAnsible
Example :
There is an intermittent interface, solarwind detect high CRC and it triggered action
To ansible to shutdown the interface.
One important idea in Site Reliability
Engineering is that in order to have a
reliable system, you need to make it out of
interchangeable and replaceable parts that
can fail at any time.
Configuration has two components:
• Configuration syntax that is specific to
vendor or platform.
• Data variables, that are consistent
regardless of the syntax (e.g. SNMP
configuration, NTP server etc.)
or unique for every device e.g.
hostname, IP address etc.
Literature Review
Infrastructure Source of Truth
Configuration & Data Variable
Configuration Template
Configuration & Templating
Data Modeling
New Configuration Model
Source of Truth
IT Infrastructure Automation with Ansible

IT Infrastructure Automation with Ansible

  • 1.
    IT Infrastructure Automation withAnsible By: Dio Pratama
  • 2.
    About Me https://www.linkedin.com/in/dio-pratama/ IT Infrastructureby the day especially in enterprise networking, sysadmin and data center. Passionate in programming and automation, business driven and lifelong learner. I believe that the future of work is all about automation. By leveraging automation, organizations will move faster and people can contribute more ideas, innovations and deliver more valuable and excellent masterpiece. Dio Pratama
  • 3.
    Infrastructure as Code: Manage IT Devices Programmatically Because of hardware is less flexible, it's time for traditional IT Infrastructure to transform their obsolate operating model to Infrastructure as a Code
  • 4.
    Trouble Ticket Trend2018 400 198 143 121 46 0 50 100 150 200 250 300 350 400 450 Connection Failure/ Issue Telephone Failure Application Error/ Issue Connection Failure Low Signal (WiFi) Total New Installation 1% No Category 4% Plug Unplug 3% Reconfigure 36% Reconnect 0% Recreate 1%Re-enable 2% Reinstall 1% Rejoin 0% Replacement 4% Reset 2% Restart 26% SR 2% Termination 1% Unclear 9% Update 1% Upgrade 1% Vendor 8% 62% Job is Repetitive Task It can be automate Data Source : One of Indonesian Pharmaceutical Company
  • 5.
    Thing that wecan automate
  • 6.
  • 7.
  • 8.
    Ansible Architecture Host inventoryfile determines the target machines where these plays will be executed Configuration file can be customized to reflect the settings in your environment Playbooks consist of one or more tasks that are expressed either with core modules that come with Ansible or custom modules that you can write for specific situations Modules (also referred to as “task plugins” or “library plugins”) are discrete units of code that can be used from the command line or in a playbook task.
  • 9.
    Ansible Types • Free- Open Source • CLI • Licensed - 10k USD / Per 100 Nodes • GUI • Many features • Free - Open Source • GUI • Same features as Tower
  • 10.
  • 11.
    AWX & TowerComparison
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 18.
    IT Infra AutomationArchitecture - Create Instances - Server Provisioning - Push OS/Image - Changing Configuration - Backup & Restore Configuration - Deploy Application - Etc Everything that we can do manually by SSH and Powershell (windows) console, It can be done automatically by Ansible
  • 19.
    Tested For ThoseKind of Devices
  • 20.
    Automate Web ServerDeployment (Windows IIS)
  • 21.
  • 22.
    Automate VM Deployment& Management (vmware) RESTful API - Create new server - Deploy server from template - Upgrade vm resources - etc Ansible vmware Modules
  • 23.
    IT Infrastructure SelfHealing Example Solarwind –Telegram API ConnectionAnsible Example : There is an intermittent interface, solarwind detect high CRC and it triggered action To ansible to shutdown the interface.
  • 26.
    One important ideain Site Reliability Engineering is that in order to have a reliable system, you need to make it out of interchangeable and replaceable parts that can fail at any time. Configuration has two components: • Configuration syntax that is specific to vendor or platform. • Data variables, that are consistent regardless of the syntax (e.g. SNMP configuration, NTP server etc.) or unique for every device e.g. hostname, IP address etc. Literature Review
  • 27.
  • 28.
    Configuration & DataVariable Configuration Template Configuration & Templating
  • 29.
  • 30.