I need help please.

Le mercredi 9 novembre 2016 10:18:51 UTC+1, Sam Amara a écrit :
>
> Hello,
> I need to deploy a windows template with foreman. 
> For that purpose, I associated this userdata template with an windows 
> operating system.
> Saisissez le code ici...
>
> <%-
>   powershell = '%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe 
> -ExecutionPolicy Unrestricted -NoLogo -NoProfile'
> -%>
> ---
> identity:
>   Sysprep:
>     guiRunOnce:
>       commandList:
>         - '<%= powershell %> -Command "invoke-webrequest -Uri <%= 
> foreman_url("built") %>"'
>     guiUnattended:
>       autoLogon: true
>       autoLogonCount: 1
>       password:
>         plainText: true
>         value: 'testpass123'
>       timeZone: 110
>     identification:
>       joinWorkgroup: 'MyGroup'
>     licenseFilePrintData:
>       autoMode: 'perSeat'
>     userData:
>       computerName: <%= @host.shortname %>
>       fullName: 'IT'
>       orgName: 'MyOrg'
>       productId: 'D2N9P-3P6X9-2R39C-7RTCD-MDVJX'
> nicSettingMap:
>   - adapter:
>       dnsDomain: <%= @host.domain %>
>       dnsServerList:
>         - <%= @host.subnet.dns_primary %>
> globalIPSettings:
>   dnsServerList:
>     - <%= @host.subnet.dns_primary %>
>   dnsSuffixList:
>     - <%= @host.domain %>
> options:
>   changeSID: true
>   deleteAccounts: false
>
>
> After deploying a vm, a build property is still on "Pending installation" 
> and to my knowledge none of this data is passed.
>
> Somebody can help me please?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to