-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use resource powershell instead of powershell_script #9
Comments
However, seeing warning for
|
I will take a look at this on Monday when I'm back in my office. Please keep adding notes as you see things, just giving you a timeline for my effort. |
we should be using powershell_script. the powershell resource (along with windows_package and some others) was provided by a third party resource. they were migrated into chef core during the 11.x series. the powershell cookbook is now only used for altering your powershell deploy (version upgrade, powershell mods, etc) not sure what the on_platforms deprecation warning is about though. I'm not well versed with the multi platform support in chef. |
@coffeepac I will try to dig it further, but i do not have windows environment to play with. Does cookbook works for you at the moment with the recent changes? |
Hi, |
@vkhatri sorry this took so long, but no the overall thing doesn't work. I'm getting an error from filebeat though, not the cookbook. So while I think the cookbook is fine, I can't verify. something has changed between beta-rc2 and the now released version that is breaking. I'm getting an error 'Error initialising publisher: no host configuration found'. |
@vkhatri kept poking at it and hosts is required to have a value even if the output is false. so it works just fine. onward my friend! |
@coffeepac I am glad to hear that it is working fine for you. Yeah, we have removed the default output configuration from all the beats, but have kept the node attributes commented in I will go ahead and close it. |
Wondering what ever happened to this. The
Can we go back to using |
@eherot Yes, updated cookbook to use |
@coffeepac FYI, as per cookbook wiki,
powershell_script
resource is default resourcepowershell
. It is available for Chef11
and12
.Updating cookbook to use resource
powershell
. As, i do not have Windows platform to test it out and cookbook is broken at the moment, kindly submit PR if you find some issue with new changes.https://github.com/chef-cookbooks/powershell#resourceprovider
The text was updated successfully, but these errors were encountered: