try something like this

        config.vm.provider "virtualbox" do |v|
                                if i = 2
                                   v.cpus = 4
                                else
                                   v.cpus = 2
                                end


On Thu, Sep 18, 2014 at 8:57 PM, Shai Ben-Naphtali <[email protected]> wrote:

> Hello,
>
> I've got this Vagrantfile setup (
> https://gist.github.com/shai/e2e180e8994531edad96) and I want to make
> sure that sbn-vm002 boots with 4 CPUs instead of 2.
>
> How can I construct some sort of IF that would check the vm name and set 4
> CPUs to that vm #2 ?
>
> Thanks in advance!
>
> ---
> Shai
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to