On Tue, May 6, 2014 at 9:27 AM, Helen Paterson <[email protected]>wrote:
> I didn't get the answer file working but this works instead
>
> class windowsfeaturedesktop::iis {
> dism { 'IIS-WebServerRole':
> ensure => present,
> }
> dism { 'IIS-WebServer':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-CommonHttpFeatures':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-StaticContent':
> ensure => present,
> require => Dism['IIS-CommonHttpFeatures'],
> }
> dism { 'IIS-DefaultDocument':
> ensure => present,
> require => Dism['IIS-CommonHttpFeatures'],
> }
> dism { 'IIS-HttpErrors':
> ensure => present,
> require => Dism['IIS-CommonHttpFeatures'],
> }
> dism { 'IIS-ApplicationDevelopment':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-NetFxExtensibility':
> ensure => present,
> require => Dism['IIS-ApplicationDevelopment'],
> }
> dism { 'IIS-ISAPIExtensions':
> ensure => present,
> require => Dism['IIS-ApplicationDevelopment'],
> }
> dism { 'IIS-ISAPIFilter':
> ensure => present,
> require => Dism['IIS-ApplicationDevelopment'],
> }
> dism { 'IIS-ASPNET':
> ensure => present,
> require => Dism['IIS-ISAPIExtensions','IIS-ISAPIFilter'],
> }
> dism { 'IIS-Security':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-WindowsAuthentication':
> ensure => present,
> require => Dism['IIS-Security'],
> }
> dism { 'IIS-RequestFiltering':
> ensure => present,
> require => Dism['IIS-Security'],
> }
> dism { 'IIS-Performance':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-HttpCompressionDynamic':
> ensure => present,
> require => Dism['IIS-Performance'],
> }
> dism { 'IIS-HttpCompressionStatic':
> ensure => present,
> require => Dism['IIS-Performance'],
> }
> dism { 'IIS-HealthAndDiagnostics':
> ensure => present,
> require => Dism['IIS-WebServerRole'],
> }
> dism { 'IIS-CustomLogging':
> ensure => present,
> require => Dism['IIS-HealthAndDiagnostics'],
> }
> dism { 'IIS-HttpLogging':
> ensure => present,
> require => Dism['IIS-HealthAndDiagnostics'],
> }
> dism { 'IIS-RequestMonitor':
> ensure => present,
> require => Dism['IIS-HealthAndDiagnostics'],
> }
> dism { 'IIS-WebServerManagementTools':
> ensure => present,
> require => Dism['IIS-WebServer'],
> }
> dism { 'IIS-ManagementConsole':
> ensure => present,
> require => Dism['IIS-WebServerManagementTools'],
> }
> dism { 'IIS-ManagementScriptingTools':
> ensure => present,
> require => Dism['IIS-WebServerManagementTools'],
> }
> dism { 'IIS-ManagementService':
> ensure => present,
> require => Dism['IIS-WebServerManagementTools'],
> }
> }
>
Awesome! If you have order dependencies, it may be best to add the chaining
arrows as well. Depending on whether you have manifest ordering turned on
or not
http://docs.puppetlabs.com/learning/ordering.html#unrelated-resources-and-the-ordering-setting
>
>
> On Tuesday, May 6, 2014 9:27:52 AM UTC+1, Helen Paterson wrote:
>>
>> It seems that you should be using the switch /Featurename OR
>> /Apply-Unattend NOT both, yet the puppet example is
>>
>>
>> dism { 'IIS-WebServer':
>> ensure => present,
>> answer => 'C:\answer\iis.xml',
>> }
>> https://forge.puppetlabs.com/puppetlabs/dism
>>
>>
>> I can see how to use this puppet module with the answer file, so i am
>> going to try:
>>
>> dism { 'NetFx3':
>> ensure => present,
>> }
>> dism { 'IIS-WebServer':
>> ensure => present,
>>
>> etc.....
>>
>>
>> On Friday, May 2, 2014 6:51:51 PM UTC+1, Rob Reynolds wrote:
>>
>>> Can you verify /Apply-Unattend is a proper switch for that particular
>>> feature? The error you are getting indicates it should not be used.
>>>
>>>
>>> On Fri, May 2, 2014 at 10:26 AM, Helen Paterson <[email protected]>wrote:
>>>
>>>> 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 [email protected].
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/puppet-users/36c555a6-4c93-42f5-adba-416ddbaa715c%
>>>> 40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/36c555a6-4c93-42f5-adba-416ddbaa715c%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Rob Reynolds
>>> Developer, Puppet Labs
>>>
>>> *Join us at **PuppetConf 2014 <http://puppetconf.com>**, September
>>> 23-24 in San Francisco*
>>> *Register by May 30th to take advantage of the Early Adopter discount
>>> <http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!*
>>>
>> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/124eb789-d524-4918-a977-ffa04b4cb91f%40googlegroups.com<https://groups.google.com/d/msgid/puppet-users/124eb789-d524-4918-a977-ffa04b4cb91f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
Rob Reynolds
Developer, Puppet Labs
*Join us at **PuppetConf 2014 <http://puppetconf.com>**, September 23-24 in
San Francisco*
*Register by May 30th to take advantage of the Early Adopter discount
<http://links.puppetlabs.com/puppetconf-early-adopter> **--**save $349!*
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/CAMJiBK7d0-jepgJ7Kr5-eKXx9yeed02E3d1OPok%3DUzZj6BR7jA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.