diff options
author | Lance Albertson <lance@osuosl.org> | 2021-02-22 14:30:23 -0800 |
---|---|---|
committer | Lance Albertson <lance@osuosl.org> | 2021-02-23 09:28:56 -0800 |
commit | 5dfd214000ef5bff4f8d760885e6de6900345cc3 (patch) | |
tree | 36f116d442686eaf4eb12694dee4acb958a9f119 /kitchen-tests/cookbooks | |
parent | 6733a7727f3d4b53aa8d57634ce3fd2b76967729 (diff) | |
download | chef-5dfd214000ef5bff4f8d760885e6de6900345cc3.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>
Diffstat (limited to 'kitchen-tests/cookbooks')
-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 d6a3b40bf8..9dac062a87 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" |