Can the vagrant file template reference variables defined inside the variables section of the packer.json?
On the documentation it says:
vagrantfile_template (string) - Path to a template to use for the Vagrantfile that is packaged with the box.
If it is a template, is it a template, does it mean it's a configuration template? (
http://www.packer.io/docs/templates/configuration-templates.html)
If so I would like to use my previously defined variables in the variables section such as:
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "nixos-{{user `nixos_version`}}-{{user `nixos_build`}}"
config.vm.box_url = "./nixos-{{user `nixos_version`}}-{{user `nixos_build`}}.box"
end
But I don't think I have the right syntax.