Proxmox SDN support in ansible

damo2929

Member
Mar 15, 2022
106
15
23
44
Hi Team
does anybody have a plan on adding support for proxmox SDN networking to ansible?
 
they are no official ansible playbook managed by proxmox team.
do you have a link to a public ansible playbook ?

sdn currently can be manage through rest api, but they are no command line like "qm , pct, pvesm, ...". (I don't known how ansible playbooks are implemented currently)
 
proxmox in ansible is currently in the community.general module
https://docs.ansible.com/ansible/latest/collections/community/general/index.html#plugin-index
classes currently



if a module could be built for the SDN this would put proxmox's on feature parity in ansible to VMware.
 
Last edited:
I have check the code
https://github.com/ansible-collecti...ef4cb7c4521c60888a/plugins/modules/cloud/misc

They currently use the proxmoxer python api
https://github.com/proxmoxer/proxmoxer

So, they use rest api of proxmox

So, technically, it's already possible to implement the sdn features in ansible.

note that sdn it's still beta, but I think api are enough mature, and will not change in the future.
Maybe some new options for zone plugins will be added, but the main features (zones,vnets,controllers,..) will not change anymore.

Maybe try to request the feature on ansible github, I can give support for developpers if they have questions. (I'm not an python expert, so I can't code the feature myself)
 
  • Like
Reactions: weehooey-bh
Hello there, first of all sorry for bringing this topic back to life.

Two years later, with the new 8.1 release and the officialisation of the SDN plugin, I'm also wondering if someone made or heard about a way to manage proxmox SDN features through Ansible or OpenTofu ?

I'm not that good with Python and don't have a lot of time to start coding something but if there's an already existing project, I'll be happy to contribute :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!