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

Cannot promote multiple domain controllers (replicas) in a single domain #134

Open
julien-lebot opened this issue Sep 14, 2021 · 0 comments

Comments

@julien-lebot
Copy link

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

  # 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.

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

1 participant