Skip to content

Example Ansible scripts for using the Zero-Touch Provisioning (ZTP) feature of Mellanox Oynx Network Operating System

Notifications You must be signed in to change notification settings

rhastie/ansible-ztp-example

Repository files navigation

Ansible to configure and update a ZTP server for use with Mellanox Oynx network devices

Sample project using Ansible to setup and manage a ZTP server for use with Mellanox Oynx-based network switches.

In this project you'll find:

  • (1) A role to install all software on the remote server with Playbooks and variables based on Ubuntu/Debian system.
  • (2) Severals ansible roles packaged and documented into Ansible roles to configure DHCP server and to deploy configuration files on all remote ZTP servers (FTP).
  • (3) Examples of ZTP configurations files.
  • (4) Playbook to play with ZTP roles and update ZTP in a more complex project.
  • (5) A simple example playbook to configure a Mellanox Oynx-based network switch post-ZTP boot up.

1. Ansible project to manage ZTP server

This project is managing the creation of a ZTP server running on a Debian like OS

  • ISC-DHCP-Server is used as part of the DHCP server to provide IP address on the management network.
  • VSFTPd is used to publish device's configuration and software packages.

All devices names, Ip addresses loopback addresses etc .. are defined in the inventory file named "hosts".

2. Playbooks

Available playbooks are listed below:

3. Variables

All variables are stored in the hosts file and vars.yaml and ztp-variables.yaml.

4. Contributing

Please refer to the file CONTRIBUTING.md for contribution guidelines.

5. Acknowledgement

This work is partially-based on initial work by titom73 (GitHub respository)

About

Example Ansible scripts for using the Zero-Touch Provisioning (ZTP) feature of Mellanox Oynx Network Operating System

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published