osuosl / vagrant-plugin-ganeti

Vagrant Plugin for interacting with Ganeti clusters directly
MIT License
15 stars 1 forks source link

Hypervisor Settings via Vagrantfile #3

Open ramereth opened 11 years ago

ramereth commented 11 years ago

For powerusers it would be useful to have access to hypervisor specific settings (aka hvparams). This would be for things such as boot order, vnc settings, etc and all be optional. One thing to note is that there are different hypervisor settings for xen vs. kvm for example. Ideally I would like to interface with this using ganeti.hvparams.boot_order as an example.

Take a look at the gnt-instance man page for all the supported hvparams.

ahmedshabib commented 11 years ago

Since boot_order is a sub parameter inside hvparam .How about Adding the configuration format in the following way

Vagrant.configure("2") do |config|
  # ... other stuff

  config.vm.provider :ganeti do |ganeti|
    ganeti.rapi_user= "foo"
    ganeti.rapi_pass = "bar"

    # More comprehensive hvparam config
    ganeti.hvparam "sample" do |settings|
      settings.bootorder = "something"
    end
  end
end
ramereth commented 11 years ago

Specifically, lets add the following:

I think that's a good start and we can add more as folks request them. I tried to pick ones that people may need the most.