The Foreman Windows deployment
|This blog describes how you can use the foreman to deploy a windows machine.
note: This is still under development but can give you a quick start on developing a automated system.
Requirements:
- Puppetmaster with the Foreman installed
- the Foreman PXE/TFTP function is functional
- a Microsoft WDS server
- a Windows OS dvd
When you installed a WDS server i can recommend to allow all devices without requiring administrators to approve a new device.
Logon to the Foreman
Step 1: Go to hosts -> Operating Systems -> New operating system
tab: Operating System
name: Windows Server (just give it a name)
major version: 2012 (7 / 8 / 8.1)
minor version: R2
Description: Windows Server 2012 R2
OS Family: Windows
tab: Partition table
choose one (it will not be used, but you must select one)
tab: Installation media
choose one (it will not be used, but you must select one)
click submit
Step 2: Go to: hosts – provisioning templates -> new template
name: Windows WDS
Copy paste this code into the template editor (replace WDS.FQDN with your own FQDN of the WDS)
1 2 3 4 |
default Windows label Windows kernel pxechn.c32 append WDS.FQDN::\boot\x64\wdsnbp.com -W |
tab: type
PXELinux
tab: Association
choose the os you added at step 1
Click Submit
Step 3: Go to: hosts – Architectures
click x86_64 and add the Operating System from step 1
You can now create a new host on bare metal or VMware or what else can connect with your WDS and choose the Windows PXE boot and the Foreman will hand over the PXE boot to WDS.
Okay, the configuration and automation will be the next part.
to be continued…..