windows_ad icon indicating copy to clipboard operation
windows_ad copied to clipboard

can't join vm to the domain

Open akdasari opened this issue 4 years ago • 1 comments

Cookbook version

windows_ad : 0.7.1

Chef-client version

Chef Infra Client version: 15.7.32

Platform Details

azure

Scenario:

trying to add vm to domain

windows_ad_computer node['cookbook']['domain'] do action :join domain_pass node['cookbook']['domain_password'] domain_user node['cookbook']['domain_user'] domain_name node['cookbook']['domain'] restart true end

Steps to Reproduce:

trying to configure using kitchen-test

kitchen converge

Expected Result:

Expecting to see my vm join the domain provided

Actual Result:

   Chef::Exceptions::ValidationFailed
   ----------------------------------
   Option action must be equal to one of: :nothing, :create, :modify, :move, :delete!  You passed :join.

akdasari avatar May 31 '20 10:05 akdasari

Howdy @akdasari, this was not updated in the readme, but the joining of computers to the domain should be handled by the Chef resource https://docs.chef.io/resources/windows_ad_join/ as it made no sense to continue supporting multiple resources with the same intent.

Please try using that resource and see if you have success. This cookbook is primarily for creating Active Directory and its management.

I’ll push and update to correct the error though as I can see how it leads to confusion.

derekgroh avatar May 31 '20 16:05 derekgroh