Day One: Automating Junos® with Ansible - nLogic

Juniper Networks Books

DAY ONE: AUTOMATING JUNOS? WITH ANSIBLE

EngineeErninggin. Seiemrinpglic. Sitiymplicit

DAYDOANYEO: ANUE:TAOUMTAOTMINAGTIJNUGNOJUSN? OS? WITW H IATNHSAIBNLSEIBLE

CreateCArneasitbeleApnlsaibybleopoklasybooks to autotmo atuetoymouarteneytowuor rnketwork tasks. tWashkast.oWncheattooonkcehotouorsk hours will takweilml tiankuetems.inTuhtisesD. aTyhOisnDeay One book sbhoowkssyhoouwhsoywo.u how. By SeaBnySSaewanteSllawtell

Sean Sawtell

DAY ONE: AUTOMATING JUNOS? WITH ANSIBLE

Network automation is expanding rapidly. Many network engineers are looking into automation but they do not have a background in programming. Ansible helps ? it minimizes the programming aspects of automation ? but getting started building real-world solutions can be confusing. Many other Ansible training resources focus on automating server tasks, not network tasks. It's time for a Day One guide that helps you set up an Ansible environment that can manage hundreds of Junos networking devices and accomplish realistic network management tasks. Day One: Automating Junos with Ansible is the newest book on network automation for network engineers. It includes a set-up guide, tutorials, and showcase scenarios whose Ansible scripts you can download on GitHub, all while discussing real-world requirements like secure authentication.

"This is a no-nonsense tutorial that gets you automating for real ? really fast. Reading through the material is like sitting down with a tutor who's eager to share easy-to-follow real-world examples, complete with practical tips handed down from lessons learned through the author's past experience. Skip the pie-in-the-sky, 30,000-foot, hand-waving you might get from other automation

books and get started automating Junos with Ansible today!" Jarrod Shields, Senior Network Engineer, Juniper Networks

"This is a true Day One book providing enough background and guidance to bring a beginner into the world of Network Automation. Even advanced users will be impressed with the thorough screenshots, CLI outputs, and playbook samples used to educate the audience with the tips and tricks to

accomplish another level of automating with Ansible and Junos OS." Jessica Garrison, Network Automation Architect, Juniper Networks

IT'S DAY ONE AND YOU HAVE A JOB TO DO, SO LEARN HOW TO: n Install Ansible and PyEZ n Understand Ansible's file/folder structure n Create a device inventory with multiple groups n Create playbooks to execute commands on Junos devices n Create playbooks to update Junos device configuration, in either "set" or "config" format n Create templates of device configuration fragments, assemble the fragments, and apply the

resulting config to devices n Create custom Ansible modules for tasks not supported by existing modules

ISBN 978-1-941441-61-9 53500

9 781941 441619

Juniper Networks Books are singularly focused on network productivity and efficiency. Peruse the complete library at books.

Automating Junos? with Ansible

Automating Junos? with Ansible

Ettersom nettverkene vokser, kompleksiteten ?ker, kravet til tjenester og oppetid stadig blir st?rre og behovet for raske leveranser og god dokumentasjon blir viktigere og viktigere, er det umulig ? komme unna en form for automasjon. Uansett om man har jobbet lenge med ulike l?sninger, eller er i ferd med ? velge seg en strategi for automatisering av konfigurasjon og tjenesteleveranser, er dette en nyttig bok. Den g?r grundig gjennom hvordan Ansible og Junos spiller p? lag, og tar deg gjennom hele prosessen. Fra installasjon av Ansible og enkel konfigurasjon av din f?rste enhet, til hvordan du selv kan skrive egne moduler og utvide funksjonaliteten i Ansible, slik at systemet gir deg en mest mulig str?m linjeformet og effektiv h?ndtering av endringer. I nlogic har vi mange ?rs erfaring med ulike provisjoneringsl?sninger og automatisering, s? ta gjerne kontakt for en diskusjon eller hjelp til ? komme i gang. Ola Thoresen Senior Nettverkskonsulent

Day One: Automating Junos? with Ansible

by Sean Sawtell

Chapter 1: Introduction: Automation and Ansible . . . . . . . . . . . . . . . . . . . . . . . 9 Chapter 2: Installing Ansible . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 Chapter 3: Understanding JSON and YAML . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 Chapter 4: Running a Command ? Your First Playbook . . . . . . . . . . . . . . . . 35 Chapter 5: Junos, RPC, NETCONF, and XML . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Chapter 6: Using SSH Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 Chapter 7: Generating and Installing Junos Configuration Files . . . . . . . . . 89 Chapter 8: Data Files and Inventory Groups . . . . . . . . . . . . . . . . . . . . . . . . . . 126 Chapter 9: Backing Up Device Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 162 Chapter 10: Gathering and Using Device Facts . . . . . . . . . . . . . . . . . . . . . . . 190 Chapter 11: Storing Private Variables ? Ansible Vault . . . . . . . . . . . . . . . . . . 213 Chapter 12: Roles . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223 Chapter 13: Repeating Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 Chapter 14: Custom Ansible Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270 Appendix: Using Source Control . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 287

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download