Information Technology Reference
In-Depth Information
driver :
name : vagrant
aws_access_key_id : 12345
Having more spaces is perfectly fine, as long as the values belonging to the same nested key-
value pair are all aligned vertically, with the same number of spaces:
driver :
name : vagrant
aws_access_key_id : 12345
You can also include as many spaces as you like before the colon, like so:
driver :
name : vagrant
aws_access_key_id : 12345
If there were no spaces before each line, the nested values would not be interpreted correctly,
however:
driver :
name : vagrant
aws_access_key_id : 12345
There is an alternate format for nested key-value pairs. They can also be in the form of
{<key>: <value>, <key>: <value>, …} , also known as JavaScript Object Notation
format, or JSON. For example:
mysql : { server_root_password : "rootpass" , server_debian_password : "debpass" }
It is interpreted the same as:
mysql :
server_root_password : "rootpass"
server_debian_password : "debpass"
Search WWH ::




Custom Search