Configuring a Windows Domain Controller (DC) using puppet

533 views
Skip to first unread message

Harsh Desai

unread,
Sep 5, 2013, 10:22:58 PM9/5/13
to puppet...@googlegroups.com
Hi

Has anyone tried configuring a windows 2008 server as a Domain controller using puppet manifests?

I am looking for the DC to act as a DHCP, DNS server and setup Active Directory Domain services.

Thanks
Harsh

Rich Siegel

unread,
Sep 6, 2013, 9:48:35 AM9/6/13
to puppet...@googlegroups.com
I wrote this for managing dns.
https://github.com/rismoney/puppet-windns

If you want to build a dc, dcpromo creates and uses a scripted unattended file.http://technet.microsoft.com/en-us/library/cc732887.aspx

You could easily use an exec resource to run dcpromo. Use an unless param script to see if target is a dc already.

Dhcp shouldn't be colo on a dc, but you could add roles with dism module and leverage powershell module to do anything you want. In 2012 dcpromo is powershell...

HTH,
Rich

Harsh Desai

unread,
Sep 17, 2013, 2:40:21 PM9/17/13
to puppet...@googlegroups.com
Hi Rich

dcpromo.exe with an answers file is a great idea. Thanks for that ! This will give me a machine with DC and DNS (but not a DHCP server).

Since I am working with a test environment, I will be having DHCP, DNS and DC on the same 2008 R2 machine. Do you have references I can use to add a DHCP role too? I am not too familiar with dism.

Thanks
Harsh
Reply all
Reply to author
Forward
0 new messages