How Juniper Networks uses Ansible

How Juniper Networks uses Ansible

Juniper Networks is an industry leader in network innovation. Juniper creates innovative technologies that help customers connect their ideas, compete and thrive in an ever-changing world.

Ansible is an IT automation framework that is used for infrastructure configuration management. An Ansible module models a specific resource on a managed node and ensures that the resource is in a specific state. You can execute individual modules on remote hosts to perform ad-hoc tasks, or you can execute modules through playbooks.

Ansible and Juniper Networks provide collections of Ansible modules that you can use to perform operational and configuration tasks on devices running Junos OS. Starting in Ansible Release 2.1, Ansible natively includes a number of core modules that can be used to manage devices running Junos OS. 

No alt text provided for this image

The most common applications of automation and orchestration in the management and provisioning of IT resources at Juniper Networks include :

  • Configuration automation
  • Test-driven networking
  • Continuous compliance

Ansible for Junos OS Modules

Juniper Networks provides a collection of modules in the Juniper.junos role, which is hosted on the Ansible Galaxy website . Both the Ansible core modules and Ansible Galaxy modules for Junos OS can coexist on the same platform. For brevity, references to Ansible for Junos OS modules include both the Ansible core and Ansible Galaxy modules for Junos OS.

Typically, the control machine sends a module to a managed node, where it is executed and then removed. In this scenario, the managed nodes must have the ability to execute the Ansible modules. Generally, Python is required on the managed nodes, because most Ansible modules are written in Python.

No alt text provided for this image

To run Ansible modules locally on the control machine, include --connection=local when executing individual modules, or include connection: local in your Ansible playbook. If a playbook uses the Juniper.junos modules, the playbook must also include the Juniper.junos role.

For example, the following command executes the junos_facts Ansible core module to retrieve device facts from hosts in inventory group dc1.

user@host$ ansible --connection=local -i hosts.ini dc1 -m junos_facts

Ansible Core Modules for Junos OS

Starting in Ansible Release 2.1, the Ansible core modules for Junos OS are available as part of the Ansible software.

Some of the modules are:

No alt text provided for this image

Ansible Galaxy Modules for Junos OS

Starting in Ansible for Junos OS Release 2.0.0, the Juniper.junos role includes an enhanced set of modules. Each new module replaces the functionality of one or more existing modules. The enhanced modules support a common set of connection and authentication parameters, aliases that enable you to specify the same connection and authentication-related options as the core modules, and the ability to specify the parameters inside a provider dictionary.

No alt text provided for this image




Adarsh Kumar

Cloud Technical Solutions Engineer @ Google

4 年

Great Study ??

Mahendra Sahu

System & Network Administrator | CCNP | Azure | VMware | Security | AWS | Red Hat | Ansible | Docker | Python

4 年

Nice information

要查看或添加评论,请登录

Yash Indane的更多文章

  • Use of K-mean clustering in security domain

    Use of K-mean clustering in security domain

    Summer Task-10 & ARTH Task 42 Github -> What is K-means Clustering? K-means clustering is one of the simplest and…

  • OSPF Routing Protocol using Dijkastra Algorithm

    OSPF Routing Protocol using Dijkastra Algorithm

    What is OSPF? The OSPF (Open Shortest Path First) protocol is one of a family of IP Routing protocols, and is an…

  • Using Face Recognition for automation

    Using Face Recognition for automation

    SUMMER-TASK-6 (Team Task) and ARTH TASK 38 GitHub -> In this article I will explain how we can use Face Recognition and…

    3 条评论
  • JavaScript use cases in Industry

    JavaScript use cases in Industry

    Summer Task 7.2 What is JavaScript? JavaScript, often abbreviated as JS, is a programming language that conforms to the…

    1 条评论
  • Use of confusion matrix in detecting cyber crime

    Use of confusion matrix in detecting cyber crime

    Summer 2021 Task 05 ??????? Particularly in the last decade, Internet usage has been growing rapidly. However, as the…

  • Running Chrome in Docker container

    Running Chrome in Docker container

    Summer - Task 02 ??????? By default containers don't support GUI, but by some way we can achieve that, let's discuss…

    3 条评论
  • Training a ML model inside a container

    Training a ML model inside a container

    Task 01 ??????? Task Description ?? ?? Pull the Docker container image of CentOS image from DockerHub and create a new…

    4 条评论
  • Deploying WordPress in Amazon EKS with RDS in Backend

    Deploying WordPress in Amazon EKS with RDS in Backend

    ARTH-TASK-23 WordPress is a free and open-source content management system written in PHP and paired with a MySQL or…

    3 条评论
  • How industry uses MongoDB

    How industry uses MongoDB

    ARTH-TASK-32 What is MongoDB? MongoDB is a source-available cross-platform document-oriented database program…

  • Creating a Multicloud Setup of Kubernetes using Ansible Roles

    Creating a Multicloud Setup of Kubernetes using Ansible Roles

    TASK 28 Task Description ?? ?? CREATE A MULTI-CLOUD SETUP of K8S cluster: ?? Lunch node in AWS ?? Lunch node in Azure…

    2 条评论

社区洞察

其他会员也浏览了