Basic Usage
Also note that the examples below use the VirtualBox provider, which is the current supported provider for this feature.
Below are some very simple examples of how to use Vagrant Cloud-Init with the VirtualBox provider.
For more detailed information about these config values and how to use cloud-init, please read the official documentation for cloud-init.
Basic Examples
A cloud_init config can be defined as a "hash" of key values, or as a block. Below are two examples of this for defining a cloud_init config:
The first part will be read from a local file ./foo/bar
, and the second part
will be attached using the inline content. Both "block" and "hash" forms are supported,
and should work interchangeably.
Individual machines may have their own cloud-init data: