Proxmox SDN support in 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 :)