How to use .kitchen.local.yml

Hello All,

How do I use .kitchen.local.yml to ignore some sections of my kitchen.yml without having to set new values.

The two yml files appear to be merged when running test kitchen resulting in an error.

The relevant section in my kitchen.yml:

driver:
  name: proxy
  host: localhost
  reset_command: "exit 0"
  port: 22
  username: username_here
  password: password_here

I want this to be overridden:

.kitchen.local.yml:
driver:
  name: vagrant
  network:
    - ["public_network", {ip: "192.168.100.12"}]
  customize:
    memory: 4096

When attempting to run kitchen create, I can see the driver being overridden to vagrant but it still takes the values of username and password.

How can I make those to be ignored?

Thank you in advance.

You would have to explicitly nil them or similar. The project, local, and global files are combined through a simple recursive hash merge so it doesn’t “know” anything about the data being merged.

Thanks a lot for your resoonse.
The solution was to use no values.
It now works as expected.

.kitchen.local.yml:
driver:
name: vagrant
username:
password:
network:
- [“public_network”, {ip: “192.168.100.12”}]
customize:
memory: 4096