Ask Your Question
1

Provider windows is not functional on this host (Windows 2008)

asked 2013-06-11 05:10:40 -0500

Emilio gravatar image

updated 2013-06-11 05:11:09 -0500

In a Windows 2008 SP2 (puppet client 3.2.1) This is my service definition:

    service { 'nscp':
            ensure    => 'running',
            provider=> "windows",
    }

This is my error:

/Stage[main]/Windows::Nsclient/Service[nscp] Provider windows is not functional on this host

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-06-11 11:58:58 -0500

GregLarkin gravatar image

Do you have any custom facts that set ENV['PATH'] in your Puppet environment? If so, please check if any of them mistakenly set PATH for all OS variants, instead of just non-Windows ones.

If you don't think that's the issue, please open a command window with "start command prompt with puppet", run the following commands and paste the output back here:

ruby -e "require 'puppet'; puts Puppet::Util.which('net.exe')" 

puppet agent --configprint path

ruby -e "puts File::ALT_SEPARATOR"

Also, have you set the path explicitly in puppet.conf?

edit flag offensive delete link more

Comments

Thanks Greg.. I have found the problem. One of my facts was bad programed and the ENV['PATH'] was overwrited when executed on a windows client. Thanks to google.

Emilio gravatar imageEmilio ( 2013-06-11 12:40:14 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-06-11 05:10:40 -0500

Seen: 228 times

Last updated: Jun 11 '13