Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Add support for vagrant-vsphere memory and cpu (#163)
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Albertsen <c.albertsen@vmt-gmbh.de>
  • Loading branch information
mannahusum and Christian Albertsen authored Jan 26, 2022
1 parent c258b4c commit d07e1eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion molecule_vagrant/modules/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,10 @@
# Provider
##
c.vm.provider "{{ instance.provider }}" do |{{ instance.provider | lower }}, override|
{% if instance.provider.startswith('vmware_') %}
{% if instance.provider == "vsphere" %}
{{ instance.provider | lower }}.memory_mb = {{ instance.memory }}
{{ instance.provider | lower }}.cpu_count = {{ instance.cpus }}
{% elif instance.provider.startswith('vmware_') %}
{{ instance.provider | lower }}.vmx['memsize'] = {{ instance.memory }}
{{ instance.provider | lower }}.vmx['numvcpus'] = {{ instance.cpus }}
{% else %}
Expand Down

0 comments on commit d07e1eb

Please sign in to comment.