Seems you have 2 options here at the moment.

One is what Shawn did share, that make perfect sense and is something you
should try, to have 1 json file

2nd, is having 2 json files, and do the evaluation on Vagrantfile

Shawn approach will leave all the logic in json file

2nd approach will move the evaluation logic to the Vagrantfile..

let me know what you do and what works please.

Alvaro.



On Fri, Jul 18, 2014 at 12:52 AM, Brendan Murtagh <[email protected]>
wrote:

> Hi Alvaro,
>
> When I had the chef.json entries inline with each node's declaration, the
> JSON works as expected. The hostname() method and COMPONENTS hash are
> written within the Vagrantfile and accessible. It's that transition when
> being parsed or interpolated from the external file, that the variables do
> not get populated with their true values. It seems like the file is read in
> during the provisioning process as literal strings which works for JSON
> entries that do not contain variables, but once a variable is introduced,
> it gets written as-is instead of its intended behavior.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to