Problem: Error : globalIPSettings are required when using Customization Spec
Expected outcome: New host should be provisioned using the user data template
Foreman and Proxy versions: 1.19 and 1.19.1
Problem: Error : globalIPSettings are required when using Customization Spec
Expected outcome: New host should be provisioned using the user data template
Foreman and Proxy versions: 1.19 and 1.19.1
globalIPSettings are already present in the template still getting the above error
This is the working template for windows provisioning
<%-
powershell = '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Unrestricted -NoLogo -NoProfile
-%>
---
identity:
Sysprep:
guiRunOnce:
commandList:
- '<%= powershell %> -Command "C:\Command1.ps1"'
- '<%= powershell %> -Command "C:\Command2.ps1"'
- '<%= powershell %> -Command "invoke-webrequest -Uri <%= foreman_url("built") %> -UseBasicParsing"'
guiUnattended:
autoLogon: true
autoLogonCount: 10
password:
plainText: true
value: 'Abcd#0011'
timeZone: 290
identification:
domainAdmin: ''
domainAdminPassword:
plainText: true
value: 'Abcd#0011'
joinDomain: ''
licenseFilePrintData:
autoMode: 'perSeat'
userData:
computerName: <%= @host.shortname %>
fullName: <%= @host.name %>
orgName: 'puppetmaster'
productId: ''
nicSettingMap:
- adapter:
dummy: foo
options:
changeSID: true
deleteAccounts: false
globalIPSettings:
dnsSuffixList:
- ''