- From: Carlos Camacho <
>
- To: "
" <
>
- Subject: [chef] Adding windows nodes to Active Directory Domain using Chef
- Date: Fri, 18 Jul 2014 08:19:20 +0200
Hello!!
I have this simple recipe to add my Windows nodes to my domain:
join_domain.rb
--------------------------------------------------------------------------------
join_command = "netdom join "+Chef::Config[:node_name]+"
/domain:test.local /userd:usertest /passwordd:.asdfasdf.! /reboot:5"
batch 'join_domain' do
code join_command
action :run
end
--------------------------------------------------------------------------------
Now, when nodes restarts, the FQDN of the nodes will change to
nodename.test.local and the chef client fails as the FQDN has changed
from nodename to nodename.test.local
Is there a nice way to handle this behavior?
Thanks!!!
- [chef] Adding windows nodes to Active Directory Domain using Chef, Carlos Camacho, 07/17/2014
Archive powered by MHonArc 2.6.16.