Hi,
I'm getting the below error, when using an answer file with the forge
puppet dism module
Error: Execution of 'C:\Windows\sysnative\Dism.exe /online /Enable-Feature
/Fea
ureName:IIS-WebServerRole /Apply-Unattend:c:\answer\iis_net.xml /NoRestart'
ret
rned 87:
Deployment Image Servicing and Management tool
Version: 6.1.7600.16385
Image Version: 6.1.7600.16385
Error: 87
The apply-unattend option is not recognized in this context.
For more information, refer to the help.
*This is my module*
*class win7roles { require win7roles::params file {
$win7roles::params::answer: ensure => directory, recurse =>
true, source => "puppet:///modules/win7roles/answer",
force =>
true, #copy files from puppet module to the local folder created
above } dism { 'IIS-WebServerRole': ensure => present,
answer
=> "${win7roles::params::answer}\\iis_net.xml", require =>
File["${win7roles::params::answer}"], #answer file create with
windows
system image manager(windows AIK) & windows 7 iso} }
class win7roles::params { $answer ="c:\\answer"} *
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/36c555a6-4c93-42f5-adba-416ddbaa715c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.