[chef] Search syntax where you need a "/"


Chronological Thread 
  • From: Alex Kiernan < >
  • To:
  • Subject: [chef] Search syntax where you need a "/"
  • Date: Wed, 18 Jan 2012 12:34:21 +0000

I'm trying to find all nodes which don't have /srv as a mount point, doing:

knife search node -i "os:linux AND NOT filesystem_*_mount:*srv"

works, but what I really wanted was:

knife search node -i "os:linux AND NOT filesystem_*_mount:/srv"

i.e. the search value is /srv rather than *srv.

But I can't for the life of me figure out a syntax which makes it
happy with the "/", any pointers?

-- 
Alex Kiernan



Archive powered by MHonArc 2.6.16.

§