Skip to content

Install Omada SDN Controller on Ubuntu, Debian and more Linux distros using Ansible

License

Notifications You must be signed in to change notification settings

kdpuvvadi/omada-ansible

Repository files navigation

Ansible Playbook for Deploying TP-Link Omada SDN Controller

Playbook tested on following host distributions

  • Debian 10, 11, 12
  • Ubuntu 18.04, 20.04

Tested on Control Node Ubuntu 20.04 LTS. Ansible 2.11.6.

Instructions for Ubuntu 22.04/ Debian 12

Manual instalation instructions for installing Omada SDN on Ubuntu 22.04 or Debian 12 https://blog.puvvadi.me/posts/omada-sdn-controller-ubuntu-22-04/

Setup Ansible

  • Install pip sudo apt install python3-pip -y
  • install ansible with pip pip install -i requirements.txt

Installed Packages

  • OpenJDK 8 Headless
  • MongoDB 4.0 -- Omada Supports 3.4 to 4.0
  • curl
  • jsvc
  • tar

Run

  • Clone the repo git clone https://github.com/kdpuvvadi/omada-ansible.git omada-ansible.
  • Install requirements ansible-galaxy collection install -r requirements.yml.
  • Inventory with cp inventory.ini.j2 inventory.ini.
  • Add IP and username of the server to the inventory.
  • Variables with cp vars.yml.j2 vars.yml.

Release

Run the playbook

  • Run ansible-playbook main.yml
  • if you need password for sudo for root access on your host. ansible-playbook main.yml -K

Post Install

  • Omada controller will be available on http://HOST-IP:8088/ or https://HOST-IP:8043/.
  • From v5.0.29 Adoption port has been changed to 29814/tcp.

To work properly ports 8088, 8043, 27001, 27002, 29810, 29811, 29812, 29813 and 29814 should be open.

Omada Service on host

  • sudo tpeap status -- show the status of Controller;
  • sudo tpeap start -- start the Omada Controller;
  • sudo tpeap stop --stop running the Omada Controller.