telcat / vagrant-proxmox

Use Vagrant to manage Proxmox virtual machines
MIT License
374 stars 113 forks source link

added configuration option selected_node so that vms can be created on s... #16

Closed lausser closed 9 years ago

lausser commented 9 years ago

...pecific cluster nodes

Hi, i am running a 3-node-proxmox-cluster. I installed your plugin, played around and had a lot of fun. A very useful plugin! But my virtual machines were created on random cluster nodes, so i wrote this patch in order to be able to force vm creation to happen on a specific proxmox node.

config.vm.provider :proxmox do |proxmox|
    proxmox.endpoint = 'https://10.12.1.101:8006/api2/json'
    proxmox.selected_node = 'pxmxvm01'
    proxmox.user_name = 'vagrant'
    proxmox.password = 'fackrant'
    proxmox.vm_id_range = 900..910

Gerhard