Skip to content

Commit

Permalink
add box_architecture config
Browse files Browse the repository at this point in the history
  • Loading branch information
karcaw committed Nov 13, 2024
1 parent 11fb13f commit 38d2dfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/molecule_plugins/vagrant/modules/vagrant.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@
c.vm.box = "{{ instance.box }}"
{{ 'c.vm.box_version = "{}"'.format(instance.box_version) | safe if instance.box_version }}
{{ 'c.vm.box_url = "{}"'.format(instance.box_url) | safe if instance.box_url }}
{{ 'c.vm.box_architecture = "{}"'.format(instance.box_architecture) | safe if instance.box_architecture }}
{{ 'c.vm.box_download_checksum = "{}"'.format(instance.box_download_checksum) | safe if instance.box_download_checksum }}
{{ 'c.vm.box_download_checksum_type = "{}"'.format(instance.box_download_checksum_type) | safe if instance.box_download_checksum_type }}
Expand Down Expand Up @@ -645,6 +646,7 @@ def _get_instance_vagrant_config_dict(self, instance):
"box": instance.get("box", self._module.params["default_box"]),
"box_version": instance.get("box_version"),
"box_url": instance.get("box_url"),
"box_architecture": instance.get("box_architecture"),
"box_download_checksum": checksum,
"box_download_checksum_type": checksum_type,
"provider": self._module.params["provider_name"],
Expand Down Expand Up @@ -702,6 +704,7 @@ def main():
"platform_box": {"type": "str", "required": False},
"platform_box_version": {"type": "str"},
"platform_box_url": {"type": "str"},
"platform_box_architecture": {"type": "str"},
"platform_box_download_checksum": {"type": "str"},
"platform_box_download_checksum_type": {"type": "str"},
"provider_memory": {"type": "int", "default": 512},
Expand Down

0 comments on commit 38d2dfb

Please sign in to comment.