Closed espoelstra closed 6 years ago
6.X moved this from the attribute to the resource itself. This is part of getting this resource ready to be moved directly into Chef. Chef 15 will ship with this resource and eliminate the need to depend on this cookbook. Since this cookbook will be going away the attributes for the cookbook also need to go away. This is breaking change, but that was part of the reason for the major version bump.
Cookbook version
6.1.0
Chef-client version
2.4.17
Platform Details
Ubuntu 14.04
Scenario:
Our test-kitchen builds are failing due to the custom
known_hosts
file we have specified not existing. It appears the cookbook is now ignoring thedefault['ssh_known_hosts']['file']
attribute and just writing to the default file unless explicitly overridden usingfile_location
in the recipe.Steps to Reproduce:
Run the tests from the recipe using an attributes file instead of hardcoded
file_location
and see what happens. https://github.com/chef-cookbooks/ssh_known_hosts/raw/master/test/fixtures/cookbooks/ssh_known_hosts_test/recipes/resource.rbExpected Result:
Previously (in 5.2.1 and earlier) the custom attribute specified file was created and populated.
Actual Result:
Now the entries are simply added to the host wide known_hosts and not the user/application specific known hosts defined in attributes.