Playbook tested on following host distributions
- Ubuntu 18.04, 20.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/
- Install pip
sudo apt install python3-pip -y
- install ansible with pip
pip install -i requirements.txt
OpenJDK 8 Headless
MongoDB 4.0
-- Omada Supports 3.4 to 4.0curl
jsvc
tar
Test the playbook before running it. You can use geerlingguy's Docker images such as Debian 12
to test .
- Clone the repo
git clone https://github.com/kdpuvvadi/omada-ansible.git omada-ansible
. cd omada-ansible
- Pull docker image
docker pull geerlingguy/docker-debian12-ansible:latest
- Run the container
docker run -d --privileged --name omada --volume=/sys/fs/cgroup:/sys/fs/cgroup:rw --volume ${PWD}:/var/omada:ro -p 8088:8088 -p 8043:8043 --cgroupns=host geerlingguy/docker-debian12-ansible:latest
- Test the playbook with
docker exec --tty omada env TERM=xterm ansible-playbook /var/omada/main.yml
if everything was executed as expected, you should be able to visit controller at https://localhost:8043
. Now install omada controller on VM/VPS with ths playybook.
- 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
.
- For latest(5.13.30.8) latest release
- For version 5.13.22 release 5.13.22
- For version 5.12.7 release 5.12.7
- For version 5.9.31 release 5.9.31
- For verion 5.9.9 release 5.9.9
- For version 5.8.4 release 5.8.4
- For version 5.7.4 release 5.7.4
- For version 5.6.3 release 5.6.3
- For version 5.5.6 release 5.5.6
- For version 5.4.6 release 5.4.6
- For version 5.3.1 release 5.3.1
- For version 5.1.7 release 5.1.7
- For version 5.0.30 release 5.0.30
- For version 5.0.29 release 5.0.29
- For version v4.4.6 (log4j-fix-CVE-2021-45046) release 4.4.6
- For version 4.4.6 release 4.4.4
- For version 4.4.4 release 4.4.4
- For version 4.3.5 release 4.3.5
- Run
ansible-playbook main.yml
- if you need password for
sudo
for root access on your host.ansible-playbook main.yml -K
- Omada controller will be available on
http://HOST-IP:8088/
orhttps://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.
sudo tpeap status
-- show the status of Controller;sudo tpeap start
-- start the Omada Controller;sudo tpeap stop
--stop running the Omada Controller.