Hi,
Following my previous post concerning our custom deployments, I am trying to build a dev environment for our team.
The use case is :
- lxc rootfs creation with packer via Jenkins
- push rootfs on proxmox
- import rootfs as new lxc
- start some jobs into theses new containers
I am writing a script using
The host will be shared between some developers and I was thinking about creatings pools with containers into. Every dev will have privileges on its own pool and will be able to manage containers into.
The final workflow will be to re-generate every containers on sunday.
For this, I need to get every id in each pool for deleting them and create again.
I already had a look at the pvesh tool and the api doc and started to play with :
When I try to get all id, is use
But the output is huge and not script friendly to get only ids.
Question, is there any tool using
Thanks for reading.
Regards,
Following my previous post concerning our custom deployments, I am trying to build a dev environment for our team.
The use case is :
- lxc rootfs creation with packer via Jenkins
- push rootfs on proxmox
- import rootfs as new lxc
- start some jobs into theses new containers
I am writing a script using
pvesh
to import the rootfs in proxmox.The host will be shared between some developers and I was thinking about creatings pools with containers into. Every dev will have privileges on its own pool and will be able to manage containers into.
The final workflow will be to re-generate every containers on sunday.
For this, I need to get every id in each pool for deleting them and create again.
I already had a look at the pvesh tool and the api doc and started to play with :
Code:
pvesh set /pools/lxc-packer -vms 100
pvesh set /pools/lxc-packer -vms 101
When I try to get all id, is use
Code:
pvesh get /pools/lxc-packer/
Question, is there any tool using
pvesh
or anything else to get id in specific pool ? Or some "already though" solution for my use case ?Thanks for reading.
Regards,
Last edited: