-
Notifications
You must be signed in to change notification settings - Fork 585
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
serverspec process
not working corretly
#1206
Comments
As you said, this is an issue with serverspec/specinfra and we can't really do anything about it. |
@coderanger got any advise on ways to move forwards? I can't be the only one hitting this bug. |
Use a |
I use a command resource. |
thanks for the advise, thats what I was thinking, too. |
Description
this is really an issue for serverspec, but they dont accept issues.
https://github.com/mizzy/specinfra/blob/c8a97ef154684452ba059beee4cddbc8e62258c2/lib/specinfra/command/base/process.rb#L4
the process matcher will grab the first thing that partially matches the process that you are looking for.
so if you have
and you try to write an audit with
you will not be able to match the args, because the
process
is actually matching haproxy-master, the first one to grep forhaproxy
.Kitchen Version
Chef Development Kit Version: 1.2.22
chef-client version: 12.18.31
delivery version: master (0b746cafed65a9ea1a79de3cc546e7922de9187c)
berks version: 5.6.3
kitchen version: 1.15.0
specinfra (2.67.2, 2.66.7)
serverspec (2.38.0)
The text was updated successfully, but these errors were encountered: