I believe you asked this same question on Stack Overflow[1]. You mentioned
it had to do with the Puppet agent version. Can you expand on that a bit?

[1] http://stackoverflow.com/q/33171485

On Fri, Oct 16, 2015 at 8:29 AM, Salim Padela <[email protected]> wrote:

> Environment:
>
>
> Agent node: Windows Server 2012 R2
>
>
> This is how my manifest looks like:
>
>
> class dotNetCore
> {
>   notify { 'Installing NET-Framework-Core': }
>   windowsfeature { 'NET-Framework-Core': }
>   notify { 'Finished Installing NET-Framework-Core': }
> }
> class installIIS{
>   require dotNetCore
>   notify { 'Installing IIS': }
>   windowsfeature { 'IIS':
>     feature_name => [
>       'Web-Server',
>       'Web-WebServer',
>       'Web-Asp-Net45',
>       'Web-ISAPI-Ext',
>       'Web-ISAPI-Filter',
>       'NET-Framework-45-ASPNET',
>       'WAS-NET-Environment',
>       'Web-Http-Redirect',
>       'Web-Filtering',
>       'Web-Mgmt-Console',
>       'Web-Mgmt-Tools'
>     ]
>   }
>   notify { 'Finished Installing IIS': }
> }
>
> class serviceW3SVC {
>   require installIIS
>   notify { 'Setting serviceW3SVC': }
>   service { 'W3SVC':
>     ensure => 'running',
>     enable => 'true',
>   }
>   notify { 'Finished Setting serviceW3SVC': }
> }
>
> class stopDefaultWebsite
> {
>   require serviceW3SVC
>   notify { 'Stopping Default Web Site': }
>   iis::manage_site_state { 'Default Web Site':
>     ensure    => 'stopped',
>     site_name => 'Default Web Site'
>   }
>   notify { 'Finished Stopping Default Web Site': }
> }
>
> class includecoreandiis
> {
>   contain dotNetCore
>   contain installIIS
>   contain serviceW3SVC
>   contain stopDefaultWebsite
> }
>
> On the agent node, i am getting dependency error in the event viewer:
>
>
> Failed to apply catalog: Parameter provider failed on 
> Exec[add-feature-NET-Framework-Core]: Invalid exec provider 'powershell' at 
> /etc/puppetlabs/puppet/environments/production/modules/windowsfeature/manifests/init.pp:111
> Wrapped exception:
> Invalid exec provider 'powershell'
>
>
>
> After restarting the Puppet Agent service on the client node couple of
> times, it fetches the rest of the files and it works.
>
>
> How do i make it wait for all the required files to be downloaded before
> installing the mentioned windows features?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Developers" 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-dev/5b12132e-53af-4c94-9427-f11304eb41ea%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-dev/5b12132e-53af-4c94-9427-f11304eb41ea%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Rob Reynolds
Developer, Puppet Labs

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" 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-dev/CAMJiBK53NpzSPU-6BeDOvQ8zqB6S5ECP132QkGpdgWLCsg4g3Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to