-
Notifications
You must be signed in to change notification settings - Fork 170
Add named_run_list support to provisioner #607
Conversation
@danielsdeleo From your initial comment, are you saying if I have a ---
driver:
name: vagrant
provisioner:
name: policyfile_zero
named_run_lists: example
platforms:
- name: ubuntu-14.04
- name: centos-7.1
suites:
- name: default1
run_list:
- recipe[test-audit::default]
attributes:
- name: default2
run_list:
- recipe[test-audit::other]
attributes: then it won't apply the named_run_lists to all 4 test runs? |
@tyler-ball it's the other way around. The use case that I got a specific request for was to make something like this possible with policyfiles:
When I was developing this patch I tried something like:
But I found that kitchen was not copying the
When we eventually merge policyfile stuff into core test-kitchen, it would be nice to add |
Ahhhhh, I understand! I think its fine to have That said, I think its worth adding a README entry in addition to the automatically generated CHANGELOG |
@tyler-ball added a named_run_list section to POLICYFILE_README |
e43eee1
to
28b7fa9
Compare
Note that kitchen does a little bit of magic to distribute per-suite configuration to the right place, so to use this to customize suites, you have to explicitly name it as a provisioner customization, like: ``` suites: - name: default attributes: - name: other provisioner: named_run_list: example ```
28b7fa9
to
44b6ace
Compare
Note that kitchen does a little bit of magic to distribute per-suite
configuration to the right place, so to use this to customize suites,
you have to explicitly name it as a provisioner customization, like:
It'd be nice to clean that up when we move policyfile support into kitchen proper. (See: https://github.com/test-kitchen/test-kitchen/blob/9b906c6292d9c183ffb5d631f7355c030790f058/lib/kitchen/data_munger.rb#L625-L688)
@chef/workflow