dependency error while running windowsfeature

52 views
Skip to first unread message

Salim Padela

unread,
Oct 16, 2015, 9:42:26 AM10/16/15
to Puppet Developers

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?

Rob Reynolds

unread,
Oct 19, 2015, 2:50:10 PM10/19/15
to puppe...@googlegroups.com
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?


--
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 puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/5b12132e-53af-4c94-9427-f11304eb41ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Rob Reynolds

unread,
Oct 19, 2015, 2:50:57 PM10/19/15
to puppe...@googlegroups.com
Also, this is a better question for puppet-users, not puppet-dev. Thanks!
 

--
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 puppet-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-dev/5b12132e-53af-4c94-9427-f11304eb41ea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Rob Reynolds
Developer, Puppet Labs

Rakshatha shetty

unread,
Aug 14, 2017, 11:32:01 AM8/14/17
to Puppet Developers
I'm facing the same issue while trying run iis module in windows server 2012 R2.
Could you please elaborate on how did you solve the issue?

Thanks,
Rakshatha
Reply all
Reply to author
Forward
0 new messages