community.general icon indicating copy to clipboard operation
community.general copied to clipboard

Proxmox remote pct connection

Open mietzen opened this issue 3 months ago • 11 comments

SUMMARY

This connection plugin uses ssh (paramiko) to connect to a proxmox host and then calls pct to connect into the LXC Proxmox container.

I mainly inherited from ssh_paramiko and overwrote the main methods.

Why is this useful?

With the new SDN functionality in proxmox we might want to create container that are not reachable via ssh. With this plugin we can use ansible within the container without any network access to the container.

ISSUE TYPE
  • New Module/Plugin Pull Request
COMPONENT NAME

pct_remote

ADDITIONAL INFORMATION

pct can only be executed as root this is why I put /usr/bin/sudo in front of it, I think this is not very clean. Is there a way to obtain the binary path from become_method? Or is it possible to set become: true as default?

mietzen avatar May 26 '24 14:05 mietzen