ansible with azure - ansible is simple it automation atl slide decks/ansible … · ansible with...

21
Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer

Upload: others

Post on 20-Jul-2020

35 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Ansible with AzureGoing from 0-60Adam BrassardPlatform Automation Engineer

Page 2: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Share your automation story1. How did you get started with Ansible?

I started using Ansible as our company decided to adopt the cloud, knowing the longevity of a large scale cloud deployment would rely heavily on automation, I looked into various automation tools, spoke to some colleagues and was pointed to Ansible and I haven’t looked back since.

2. How long have you been using it?

I started officially using Ansible in October of 2018, so I am very new to the space.

3. What's your favorite thing to do when you Ansible?

Infrastructure as Code

Page 3: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Innovapost is the Information Technology Shared Services provider for the Canada Post Group of Companies, including Canada Post, Purolator, and SCI Group. We provide client-specific Information Technology (IT), Information System (IS), and business solution services exclusively to all groups and functions within the Group on a cost-recovery basis.

About Innovapost

Page 4: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Infrastructure as Code in Azure

Page 5: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Is there anyone out there?

Lookup Ansible provisioning

See many articles related to

provisioning

Articles saying to use something

else for provisioning

Look into issues/limits that would prevent us

using Ansible effectively for provisioning

Find no blockers or concerns

Page 6: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

November 2018

Learning Ansible with Azure

-Begin learning Ansible power with AzureBuild Ansible roles for:

Resource GroupsVirtual Networks

SubnetsNetwork Security Groups

Availability SetsVirtual Machines

Network Interface CardsAzure Disk December

Creating Ansible development standards

-Setup standards for development of Ansible Infrastructure as Code.-Set formatting and naming standards-Define var standard and processBuild Ansible roles for:

Managed MSSQLManaged PostgreSQL

January 2019

Let’s add some complexity

-Enhancements of existing roles with some Ansible goodness and logic complexity (looping, conditionals and more!)Build Ansible roles for:

Load Balancers

February

Lessons learned applied and even more roles

-Mapping out how to build roles without dedicated modules-Testing and Using Azure Dynamic inventory scriptBuild Ansible roles for:

Azure storage accountsAzure tagging

EventHub & EventHub namespaceMolecule additions

March

Documentation storm

-Enabling teams to leverage the roles independent from our involvement by supplementing the README documentation with confluence docs-Molecule use for Azure documented with patterns Build Ansible roles for:

YUM RepoYUM Package

Ansible tower templates

April

Creating Automation stages

-Using knowledge gained from internal teams for development, establish a suite of standards to enable multi team deliveryBuild Ansible roles for:Refactor all existing roles to meet

newly minted standards and provide clear frameworks for the

organization

Not all paths are the same!

Page 7: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Where are my roles at?

- I want more than just basics, but how do I find them? Why they may just be in a galaxy far far away, an Ansible Galaxy that is!

- Why aren’t the people who use Ansible for provisioning in Azure as actively contributing?

Page 8: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

- Using Ansible for infrastructure provisioning is not only OKAY, it is powerful!

- Azure cloud modules are where it’s at!

Where do we go from here?

Page 9: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Resource module compared to dedicated module

On the left the example you will find of existing resources in https://resources.azure.com examples using azure_rm_resource module

Below we see a parameterized version of the dedicated Availability Set module azure_rm_availabilityset

Page 10: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

I get by with a little help from my extensions

Page 11: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Azure dynamic inventory away!

Page 12: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Something new comes to town!

Page 13: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Learning and sharing with developers

Development best practises

Infrastructure as code best practises

Page 14: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Some stages to deliver automation!

Page 15: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

To “Tower” over your environment

Page 16: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation
Page 17: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

There’s a tool for that!

Page 18: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

My Essentials

Page 19: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Extra tools to round out the toolbox

Page 20: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation
Page 21: Ansible with Azure - Ansible is Simple IT Automation ATL Slide Decks/Ansible … · Ansible with Azure Going from 0-60 Adam Brassard Platform Automation Engineer. Share your automation

Resource links:

- https://docs.ansible.com/ansible/latest/modules/list_of_cloud_modules.html#azure- https://resources.azure.com- https://code.visualstudio.com/

- https://marketplace.visualstudio.com/items?itemName=vscoss.vscode-ansible- https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

- https://molecule.readthedocs.io/en/stable/- https://docs.microsoft.com/en-us/azure/ansible/ansible-manage-azure-dynamic-inventories#gener

ate-a-dynamic-inventory