So I assume it’s not supported so far, unless someone can prove me wrong.
An easy solution would be to hava a databags dir alongside with the
cookbooks dir in the test kitchen and reference that in the
Vagrantfile, i.e.:
/test/kitchen/cookbooks
/test/kitchen/databags
It would get more tricky if you want to “override” a databag for a
specific configuration. Not sure how to handle this best, but
something like prefixing the databag with the configuration name or
having a subdirectory with configuration name come to my mind.
What do you think?
Cheers,
Torben
P.S.: will create a JIRA ticket for this, but want to discuss it here first
So I assume it's not supported so far, unless someone can prove me wrong.
An easy solution would be to hava a databags dir alongside with the
cookbooks dir in the test kitchen and reference that in the
Vagrantfile, i.e.:
/test/kitchen/cookbooks
/test/kitchen/databags
It would get more tricky if you want to "override" a databag for a
specific configuration. Not sure how to handle this best, but
something like prefixing the databag with the configuration name or
having a subdirectory with configuration name come to my mind.
What do you think?
Cheers,
Torben
P.S.: will create a JIRA ticket for this, but want to discuss it here first
So I assume it's not supported so far, unless someone can prove me wrong.
An easy solution would be to hava a databags dir alongside with the
cookbooks dir in the test kitchen and reference that in the
Vagrantfile, i.e.:
/test/kitchen/cookbooks
/test/kitchen/databags
It would get more tricky if you want to "override" a databag for a
specific configuration. Not sure how to handle this best, but
something like prefixing the databag with the configuration name or
having a subdirectory with configuration name come to my mind.
What do you think?
Cheers,
Torben
P.S.: will create a JIRA ticket for this, but want to discuss it here first