Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't join vm to the domain #125

Open
akdasari opened this issue May 31, 2020 · 1 comment
Open

can't join vm to the domain #125

akdasari opened this issue May 31, 2020 · 1 comment
Assignees

Comments

@akdasari
Copy link

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.
@derekgroh
Copy link
Contributor

derekgroh commented May 31, 2020

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 derekgroh self-assigned this May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants