Skip to content

Latest commit

 

History

History
80 lines (66 loc) · 2.91 KB

prepare_foreman.md

File metadata and controls

80 lines (66 loc) · 2.91 KB

Preparing Foreman

to use the generated OS Images please configure youre Foreman Instace according to this guide. This Guide was written with Foreman 2.1 - if you use a older or newer version some settings might be called different.

Create Installation Media Mirror

  1. Navigate to Hosts > Provisioning Setup > Operating Systems
  2. Click the Create Medium Button
  3. Fill in the Form:
    • Name: Windows Images
    • Path: http://your.webserver.local/$arch/$major/
    • Operating System Family: select Windows
    • Locations: select your Options
    • Organizations: select your Options
  4. Submit

Create Operating System

  1. Navigate to Hosts > Provisioning Setup > Operating Systems

  2. Click the Create Operating System Button

  3. Fill in the Form:

    • Name: WindowsServer2016
    • Description: Windows Server 2016
    • Major Version: 2016
    • Minor Version: leave empty
    • Root Password Hash: select Base64-Windows
    • Architectures: select your Architecture, like amd64 or x86_64
  4. Select the Tab Partition Table

    • Filter for Windows
    • Add Windows default partition table and Windows default GPT EFI partition table to list
  5. Select the Tab Installation Media

    • Filter for Windows Images
    • Add Windows Images to the list
  6. Submit

Modify Provisioning Templates

  1. Navigate to Host > Templates > Provisioning Templates

  2. Search for Windows

  3. For each of the following templates, edit the Options in the Tabs:

    • Association: Add Windows Server 2016 to the list
    • Locations: select your Options
    • Organizations: select your Options

    Templates:

    • PXELinux chain iPXE
    • Windows default finish
    • Windows default provision
    • Windows default PXELinux
    • Windows default iPXE
    • Windows peSetup.cmd

Modify Operating System

  1. Navigate to Hosts > Provisioning Setup > Operating Systems
  2. Search for the just created Windows Server 2016
  3. Select the Parameters Tab and add at least the wimImageName Setting
  4. Submit

Possible Parameters

Mandotory Parameters:

  • wimImageName: possible options from images.ini

Optional Parameters:

  • windowsLicenseKey (string): ABCDE-ABCDE-ABCDE-ABCDE-ABCDE
  • windowsLicenseOwner (string): Company, INC
  • localAdminAccountDisabled (boolean): true or false
  • ntpServer (string): time.windows.com,pool.ntp.org
  • foremanDebug (boolean): true or false
  • systemLocale (string): en-US, de-DE
  • systemUILanguage (string): en-US, de-DE
  • systemTimeZone (string): GMT Standard Time, Eastern Standard Time, W. Europe Standard Time Microsoft Time Zones

Optional Parameters: Active Diretory Domain Join:

  • computerDomain (string): domain.com
  • domainAdminAccount (string): ad-join-user@domain.com
  • domainAdminAccountPasswd (string): securepassword
  • computerOU (string): OU=Computers,CN=domain,CN=com