diff options
author | Lance Albertson <lance@osuosl.org> | 2021-02-22 14:30:23 -0800 |
---|---|---|
committer | Lance Albertson <lance@osuosl.org> | 2021-02-23 10:17:42 -0800 |
commit | 09e99283b14530b0ac24923f4652bdb1e598e32c (patch) | |
tree | d3df42d263977afceefd47134e9dc1ee043e8a4d | |
parent | 23af4056183e5a1da0be457bc7613676b56f97f9 (diff) | |
download | chef-09e99283b14530b0ac24923f4652bdb1e598e32c.tar.gz |
Update resolver cookbook usage in test-kitchen tests
Recently, the Sous Chefs released a new resource driven resolver cookbook and
removed the default recipe, thus breaking tests. This should fix the tests
related to this.
Signed-off-by: Lance Albertson <lance@osuosl.org>
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/attributes/default.rb | 7 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/linux.rb | 5 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/end_to_end/recipes/macos.rb | 5 |
3 files changed, 8 insertions, 9 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/attributes/default.rb b/kitchen-tests/cookbooks/end_to_end/attributes/default.rb index e910b9e7d4..72430e9367 100644 --- a/kitchen-tests/cookbooks/end_to_end/attributes/default.rb +++ b/kitchen-tests/cookbooks/end_to_end/attributes/default.rb @@ -67,13 +67,6 @@ default["chef_client"]["config"]["verbose_logging"] = false default["chef_client"]["chef_license"] = "accept-no-persist" # -# resolver cookbook overrides -# - -default["resolver"]["nameservers"] = [ "8.8.8.8", "8.8.4.4" ] -default["resolver"]["search"] = "chef.io" - -# # nscd cookbook overrides # diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb index 8991cf1594..7f72c0b76a 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/linux.rb @@ -39,7 +39,10 @@ include_recipe "::_packages" include_recipe "ntp" -include_recipe "resolver" +resolver_config "/etc/resolv.conf" do + nameservers [ "8.8.8.8", "8.8.4.4" ] + search [ "chef.io" ] +end users_manage "sysadmin" do group_id 2300 diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb index cb123d1225..a724c4882c 100644 --- a/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb +++ b/kitchen-tests/cookbooks/end_to_end/recipes/macos.rb @@ -23,7 +23,10 @@ timezone "America/Los_Angeles" include_recipe "ntp" -include_recipe "resolver" +resolver_config "/etc/resolv.conf" do + nameservers [ "8.8.8.8", "8.8.4.4" ] + search [ "chef.io" ] +end users_manage "remove sysadmin" do group_name "sysadmin" |