You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a forest, then add a backup domain controller.
Since the resource domain doesn't execute the create action if a domain already exists, the backup domain controller will not be promoted.
Recipe:
On the forest node
# Create the forest
windows_ad_domain node['ad']['domain_name'] do
type 'forest'
safe_mode_pass node['ad']['safe_mode_pass']
domain_pass node['ad']['domain_pass']
domain_user node['ad']['domain_user']
options options
action :create
restart true
end
On the backup node
# Create the backup controller
windows_ad_join node['ad']['domain_name'] do
domain_password node['ad']['domain_pass']
domain_user node['ad']['domain_user']
reboot :immediate
action :join
end
windows_ad_domain node['ad']['domain_name'] do
type 'replica'
safe_mode_pass node['ad']['safe_mode_pass']
domain_pass node['ad']['domain_pass']
domain_user node['ad']['domain_user']
options options
action :create
restart true
end
Expected Result:
The backup domain controller is promoted.
Actual Result:
The backup domain controller was not promoted.
The text was updated successfully, but these errors were encountered:
Cookbook version
0.7.2
Chef-client version
14.5.33
Platform Details
Windows Server 2019 Datacenter
Scenario:
Have more than one Domain Controller in a Domain.
Steps to Reproduce:
Create a forest, then add a backup domain controller.
Since the resource
domain
doesn't execute the create action if a domain already exists, the backup domain controller will not be promoted.Recipe:
On the forest node
On the backup node
Expected Result:
The backup domain controller is promoted.
Actual Result:
The backup domain controller was not promoted.
The text was updated successfully, but these errors were encountered: