Русские видео

Сейчас в тренде

Иностранные видео


Скачать с ютуб NetBox Zero To Hero - Video 7 - Automate All The things! в хорошем качестве

NetBox Zero To Hero - Video 7 - Automate All The things! 2 года назад


Если кнопки скачивания не загрузились НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием, пожалуйста напишите в поддержку по адресу внизу страницы.
Спасибо за использование сервиса savevideohd.ru



NetBox Zero To Hero - Video 7 - Automate All The things!

Hello and welcome to module 7 of the NetBox 'Zero-to-Hero' course. In this Video, Eric will use Ansible to extract data from NetBox and then use that data to automate the creation of basic device configurations for the WAN Router (Cisco IOS) and the Access Switch (Juniper JunOS), at the new Brisbane branch office. By the end of this module you will be able to: Set up Ansible to use NetBox as the source of it's Dynamic Inventory Write Ansible playbooks to make REST API calls to NetBox and extract the required data to build the device configurations Automate the generation of device configuration files using Jinja templates, passing in the data extracted from NetBox as variables Get Hands On If you'd like to follow along with the examples used in this course, it's super easy to do, and you have a few options: 1. Run NetBox as a container with [NetBox Docker](https://github.com/netbox-community/n...) - This is the quickest way to get your own dedicated NetBox instance going and it only takes a few minutes to spin up on your laptop! 2. Follow the [official documentation](https://docs.netbox.dev/en/stable/ins...) and do a full installation all the NetBox components. These instructions have been tested on Ubuntu and CentOS Linux. 3. Use the public [demo instance](https://demo.netbox.dev/) of NetBox The software versions used in the video for this module are: `NetBox v3.3.2` `Python v3.8.9` `ansible-core v2.13.4` `ansible package v6.4.0` `pynetbox v6.6.2` `netaddr v0.8.0` Installing Ansible Ansible runs on Linux based systems, and is installed as a Python package. Follow these [steps](https://github.com/netbox-community/n...) to set up Ansible on your own system - it takes less than 5 minutes! If you already set up Ansible in module 4 then you just need to add one extra python package into your virtual environment to allow Ansible to work with IP addresses and subnets. This allows us to pull the IP address from NetBox in CIDR notation and covert the subnet mask to dotted decimal notation required for Cisco IOS configurations: pip3 install netaddr Challenge - Improve The Jinja Templates If you fancy a challenge why not develop these playbooks and templates further and improve them? Maybe you could add descriptions for the switch interfaces and add that logic to the JunOS templates? Maybe you could make them more efficient, or you could try using Nornir or Python instead of Ansible to pull data from NetBox and render the configs. Join the Discussion If you have any questions as you go through the course then pop on over to the [NetBox Zero to Hero channel](https://netdev-community.slack.com/ar...) on the NetDev Community Slack! If you aren't already a member then you can sign up for free [here](https://netdev.chat/). Useful Links [Zero To Hero Git Repo](https://github.com/netbox-community/n...) [Official NetBox Documentation](https://docs.netbox.dev/en/stable/) [NetBox Docker](https://github.com/netbox-community/n...) [NetBox Cloud](https://www.getnetbox.io/) is a hosted solution offered by NS1

Comments